OneToOne « Cascade « JPA Q&A





1. OneToOne with JoinTable -Exception during persist w/ cascade    forum.hibernate.org

I'm trying to map a bi-directional lazy OneToOne relationship using a JoinTable to avoid having Hibernate eagerly load the related object [see http://www.hibernate.org/162.html, http://opensource.atlassian.com/projects/hibernate/browse/HHH-3653]. The use of the JoinTable does avoid the eager load of the related object, however an exception is generated during the persisting of the object graph when the OneToOne mapping with the JoinTable is mapped with cascade=Cascade.ALL. ...