-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: saveOrUpdate() gives PK:null Exception !
PostPosted: Wed Aug 06, 2008 4:21 am 
Newbie

Joined: Wed Aug 06, 2008 4:12 am
Posts: 1
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 ;)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.