-->
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.  [ 3 posts ] 
Author Message
 Post subject: Hibernate Overwrites Changes to the Database
PostPosted: Fri Jan 08, 2010 10:05 am 
Newbie

Joined: Thu Jul 03, 2008 4:41 am
Posts: 3
Hi,

I have a simple Hibernate Query (with a simple equals-citeria).
Between two queries, I update the database with another tool.

Problem is, that hibernate reads the new data, but instantely updates the
database to have the old values (before the outside-of-hibernate-update).

How can I tell hibernate to use the latest data from the DB and to not
update the DB when I do not call "update"?

Best Regards
Stefan


Top
 Profile  
 
 Post subject: Re: Hibernate Overwrites Changes to the Database
PostPosted: Wed Jan 13, 2010 2:00 am 
Newbie

Joined: Wed Dec 23, 2009 12:38 pm
Posts: 14
Can you please post your code snippet as well ?


Top
 Profile  
 
 Post subject: Re: Hibernate Overwrites Changes to the Database
PostPosted: Wed Jan 13, 2010 10:42 pm 
Newbie

Joined: Wed Jan 06, 2010 2:30 am
Posts: 5
stscit04 wrote:
Hi,

I have a simple Hibernate Query (with a simple equals-citeria).
Between two queries, I update the database with another tool.

Problem is, that hibernate reads the new data, but instantely updates the
database to have the old values (before the outside-of-hibernate-update).

How can I tell hibernate to use the latest data from the DB and to not
update the DB when I do not call "update"?

Best Regards
Stefan

we can't help you if you haven't got any code for us to view.

_________________
Hibernate guides developer for marketing, It's powerful.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.