-->
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: Stale State Exception in session.save
PostPosted: Tue Jun 24, 2014 11:01 am 
Newbie

Joined: Thu Sep 22, 2011 9:06 am
Posts: 16
Hi,
My hibernate configuration looks recursive map.

Device dev=new Device();
//--- setDevId();

Dummy dum=new Dummy();
dum.setDevice(dev);

dev.setDummy(dum);

sessoin.save(dev);
session.flush();// Getting exception state state object

The db design is,
Device.hbm.xml
==============
Device (1) --- Dummy(M)(Bag)

Dummy.xml
=======
Dummy 1 --- Device 1

My problem is , when i save the pojo i faced this problem. Is there any way to solve this problem?


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.