예제 #1
0
 public void updateCarrito(CarritoDTO detail) {
   CarritoEntity entity = entityManager.merge(CarritoConverter.persistenceDTO2Entity(detail));
   CarritoConverter.entity2PersistenceDTO(entity);
 }
예제 #2
0
 public CarritoDTO createCarrito(CarritoDTO carrito) {
   CarritoEntity entity = CarritoConverter.persistenceDTO2Entity(carrito);
   entityManager.persist(entity);
   return CarritoConverter.entity2PersistenceDTO(entity);
 }