ItEr14S11CUConfiguracionDeOrganizacionsDeTraballoConUnidadesTraballoItEr13S13: Updating class to reflect new ProjectWorkName.

This commit is contained in:
Óscar González Fernández 2009-06-25 17:13:09 +02:00 committed by Javier Moran Rua
parent 807bdce30e
commit fa37437400

View file

@ -14,16 +14,15 @@ import org.springframework.stereotype.Component;
*/
@Component
@Scope(BeanDefinition.SCOPE_SINGLETON)
public class ProjectWorkConverter implements Converter<Order> {
public class OrderConverter implements Converter<Order> {
@Autowired
private IOrderService projectWorkService;
private IOrderService orderService;
@Override
public Order asObject(String stringRepresentation) {
try {
return projectWorkService
.find(Long.parseLong(stringRepresentation));
return orderService.find(Long.parseLong(stringRepresentation));
} catch (InstanceNotFoundException e) {
throw new RuntimeException(e);
}