aspose file tools
The moose likes Object Relational Mapping and the fly likes Hibernate : Repetition in FetchMode.JOIN Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply Bookmark "Hibernate : Repetition in FetchMode.JOIN" Watch "Hibernate : Repetition in FetchMode.JOIN" New topic
Author

Hibernate : Repetition in FetchMode.JOIN

Anthony D'Souz
Ranch Hand

Joined: Oct 13, 2011
Posts: 43
I have a dept table and an emp table. The dept table had a one-to-many relation with emp table w.r.t the deptId.

When i tried this code:



This is the generated output in my console for the sql query generated by the hibernate:



In the generated hibernate query I can clearly see that there are repetition in columns of the emp table. But i don't want these repetitions to appear. How to avoid the repetition in the hibernate generated query then?

Please inform how to remove these repetitions.

Regards,
Anthony D'Souz
Ranch Hand

Joined: Oct 13, 2011
Posts: 43
Any help on this please?
 
I agree. Here's the link: http://jrebel.com/download
 
subject: Hibernate : Repetition in FetchMode.JOIN
 
Similar Threads
Error in Oracle LONG mapping
Hibernate join and key tag
Please help me in creation of tables
inner query in hibernate
Hibernate doing a JOIN and a SELECT though only a JOIN is specified as FetchType and on the hbm