aspose file tools*
The moose likes Object Relational Mapping and the fly likes Many to one relationshilp table have same entity name returns wrong value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Many to one relationshilp table have same entity name returns wrong value" Watch "Many to one relationshilp table have same entity name returns wrong value" New topic
Author

Many to one relationshilp table have same entity name returns wrong value

sampath soft
Greenhorn

Joined: Apr 13, 2007
Posts: 17
Hi,

I have Two Table FOLDER and TOPIC. Their hbm as follows...


I have enabled second level ehcache for both table.


when i call instand of hibernate returning parentId of TOPIC, it returns the parentId of FOLDER. Some time it returns correct value some time not.

Can you help me to fix and explain this

Thanks in advance
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Many to one relationshilp table have same entity name returns wrong value