This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Hibernate disadvantages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate disadvantages" Watch "Hibernate disadvantages" New topic

Hibernate disadvantages

mallikarjun dontamsetti
Ranch Hand

Joined: Mar 18, 2011
Posts: 246

Hi i read these two statements about hibernate disadvantages. Could anyone explain them clearly
Hibernate is not much flexible in case of composite mapping. This is not disadvantage since understanding of composite mapping is complex.

you cannot map multiple tables to a single class. This has been fixed in Hibernate 3 using the join tag.

I think i got some thing about second statement join. When i try to use join in my HQl the data get two time. And i then use uniqueresult() method is this is a problem.
Thanks in advance
FYI i am fetching data from a class which has reference of two classes (A,B) using one to many mapping(And Class B is mapped in many to one with class A). Is this mapping(reference object each other in each class is getting this double data problem?)
I agree. Here's the link:
subject: Hibernate disadvantages
It's not a secret anymore!