Please enable JavaScript.
Coggle requires JavaScript to display documents.
primera
8001, segunda
8002 - Coggle Diagram
primera
8001
modelo
"Producto
Utiliza java persistence.
Entitity - Table tabla de la base de datos
-
servicio
interfaz de servicio |
Implementacion del "ProductoServicio será tipo service | inyecta Autowired "de ProductoDAO" override transaccional (readOnly = true) | //cast
return (List<Producto>) productodao.findAll(); //se hace un cast
-
-
-
-
-
-
-
segunda
8002
modelo
-
Item | Se crea una variable de "Producto y cantidad setters and getters y un contructor y uno de cantidad.
Cada Item tiene un Producto
servicio
"ItemServicio
//devuelve lista de todos los metodos
public List<Item> findAll();
//devuelve el item del producto y cantidad
public Item findById(Long id, Integer cantidad);
-
-
-
Configuracion se configura con Configuration
se indica que sera
//es un cliente http para poder acceder a otros microservicios
Bean("clienteRest")
public RestTemplate registrarResT(){
return new RestTemplate();}