Ver Mensaje Individual
  #15 (permalink)  
Antiguo 02/05/2017, 21:37
Avatar de detective_jd
detective_jd
 
Fecha de Ingreso: abril-2011
Ubicación: Salto
Mensajes: 437
Antigüedad: 13 años
Puntos: 6
Respuesta: Guardar OneToMany Hibernate

Hola Fuzzylog el error que me da es este:

may 03, 2017 12:37:58 AM org.hibernate.internal.ExceptionMapperStandardImpl mapManagedFlushFailure
ERROR: HHH000346: Error during managed flush [deleted object would be re-saved by cascade (remove deleted object from associations): [app.model.entity.Estado#1]]

y el pequeño cambio al código es este:

Código Java:
Ver original
  1. @OneToMany(mappedBy = "key.subasta",cascade = CascadeType.MERGE,orphanRemoval = true)
  2.     private List<Venta>ventas = new ArrayList();

Espero sus respuestas y saludos.