This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate : Repetition in FetchMode.JOIN

 
Anthony D'Souz
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any help on this please?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic