This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Many to one relationshilp table have same entity name returns wrong value
 
Similar Threads
Classcast exception
Hibernate: Problem with View returning list of nulls
Hibernate generate select while storing object.
hibernate get parent based on children