I have mapping like these one to many unidirectional + list) @OneToMany(fetch = FetchType.EAGER) @IndexColumn(name = "SORT_VALUE",nullable = false) @Cascade( { org.hibernate.annotations.CascadeType.ALL, org.hibernate.annotations.CascadeType.DELETE_ORPHAN }) @JoinColumn(name = "R_ID") List getMyObject()...
Also I have same @OneToMany mappings with others object .. but I am gettting desired records + null records too ? any idea why ?
Shailesh Kini
Ranch Hand
Joined: Oct 17, 2001
Posts: 153
posted
0
Ambar,
I am sure Hibernate comes with a property that logs the sql being executed behind the scenes. You may want to look at that to debug. It might be a data issue but I can't tell for sure. You will have to provide additional details.
Shailesh Kini.
subject: one to many unidirectional : getting null