-->
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: newbie question
PostPosted: Thu Jun 21, 2007 6:47 pm 
Newbie

Joined: Thu Jun 21, 2007 6:38 pm
Posts: 2
Hello,

I'm new at hibernate and trying somethings out but have a strange problem, maube u can help me

have a little java application wich collects data from mysql db
when i delete an object the object is also deleted from the db
i check this with refilling table

but when i restart the programm and recollect everything in table
the deleted object appears again.

i use the hibernateUtil from the hibernate.org

any suggestions?

tia
sven


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 22, 2007 6:18 am 
Beginner
Beginner

Joined: Mon Nov 13, 2006 9:43 am
Posts: 30
Hi,


>i check this with refilling table
What do you mean?

what about autommit property in hibernate config file?

regards,

giorgi


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 22, 2007 7:39 am 
Newbie

Joined: Thu Jun 21, 2007 6:38 pm
Posts: 2
Hello,

I have a Jtable were i read all data from the database ,

i clear the model and ther a refill the model again with new data

i maybe found the problem , seems only local cache is updated ans within the tutorial code ive found they dont call tx.commit

but first i'll check your suggestion


regards

sven


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 22, 2007 10:51 am 
Newbie

Joined: Sat May 05, 2007 6:48 pm
Posts: 4
As you said, make sure you are calling commit. I had the same problem when I was first starting and was getting inconsistent results until I realized I had missed the simple call.


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.