-->
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.  [ 4 posts ] 
Author Message
 Post subject: when create new session, saved objects are vanished......
PostPosted: Mon Nov 27, 2006 5:55 am 
Newbie

Joined: Mon Oct 23, 2006 12:27 am
Posts: 4
Location: sri lanaka
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 8.1


Problems with Session and transaction handling?

It is ok that save an object by using hibernate, but when I try to get that object back, it is said that that object is not in the table. (No row with the given identifier exists).

When I tested it step by step, the data is in the table until create the new session, but just after creating the session that row is vanished.

Please help me to solve this problem.

Thank you......


Read this: http://hibernate.org/42.html

_________________
R P Janaka Priyadarshana
Dept Of Computer Science & Engineering
University Of Moratuwa
Moratuwa
Sri Lanka.


Top
 Profile  
 
 Post subject: Re: when create new session, saved objects are vanished.....
PostPosted: Mon Nov 27, 2006 7:21 am 
Regular
Regular

Joined: Sat May 20, 2006 3:49 am
Posts: 78
rpjanaka wrote:
Hibernate version: 8.1


You are living in the future ;) The current version is 3.2.

What database (version) do you use?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 27, 2006 1:18 pm 
Senior
Senior

Joined: Mon Oct 23, 2006 5:12 am
Posts: 141
Location: Galicia, Spain
Please, if you want people to help, post your mapping files, POJOs, session/transaction handling code etc.

_________________
andresgr (--don't forget to rate)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 27, 2006 1:24 pm 
Regular
Regular

Joined: Thu Sep 22, 2005 1:53 pm
Posts: 88
Location: Rio de Janeiro
propably need to use transactions or forgot to flush the session

but please post mapping files and your java code!

_________________
DonĀ“t forget to rate!


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

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.