Hi all,
I am using Hibernate 3.2.5.ga and MySql 5.0 for building a web application.
In my web application I create an object of type 'User'.Each 'User' has around 4000 child objects of type 'WordInfo' associated with it.So a 'User' has a set of 'WordInfo'(s). I create a User in one session and retrieve its children WordInfo(s) back in another session using UserId(which is the primary key of User).
The issue I've been facing is quite random.I create a User 2-4 times and then access their children WordInfo in another session.Everything works fine.When I create more Users after this and then access their children,hibernate says no rows exist for WordInfo in the database.I get the following error..
INFO [03 Nov 2007 13:37:39,750] (DefaultLoadEventListener.java:111) - Error performing load command
org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.mywords.domain.WordInfo#202152]
at org.hibernate.impl.SessionFactoryImpl$1.handleEntityNotFound(SessionFactoryImpl.java:377)
at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:145)
But the WordInfo row with id #202152 does exist in the database.I dont know why hibernate says it does not exist?
Has anybody faced this issue before? Please help.
|