Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using:
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
Hi guys,
Hi Iam Working in the Hibernate .Please help me out in this problem.
i am trying to update a record through hibernate by using session.load() method .i am passing my instance of the my Object. please see the below the code
public Object getObject(String sessionHandle,Object baseVO) throws MOESDBException{
Session session = (Session)sessionCache.get(sessionHandle);
if(session == null)
throw new DBException(ErrorConstants.DB_NO_SESSION_FND_ERROR);
return session.load(baseVO.getClass(),baseVO.getGroupID());
}
Here baseVO.getGroupID() is the primary Key
but my getObject Method is not able to return persisestence Object it returns null;
I am gettting ObjectNotFound Exception.Please Help Me out in this problems
regards
rajasekhar