Hi All,
I am using hibernate 3.0 as persistence framework and
the transaction is controlled by the WebSphere server
and using stateless session bean ejb's for
business logic , Database is DB2.
Am facing a strange problem while saving the hibernate session
to the database.
The code looks like as follows :
session().saveOrUpdate(objToSave);
This throws an exception PK:null some times.
But when i retry the same thing next time, it works fine !
So why this data persistence behaves like this ?
Can any one help ??
Expecting your reply soon..!
Thanks in Advance ;)
|