-->
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.  [ 2 posts ] 
Author Message
 Post subject: Hibernate Problem with Update
PostPosted: Tue Jan 26, 2010 1:29 pm 
Newbie

Joined: Sun Jun 18, 2006 9:47 pm
Posts: 6
I am using Hibernate version 3 connecting to a Oracle database. I find out that when i execute the code below to update the object, though i see the SQL generated, it does not update the database, any help would be appreciated

Transaction transaction=session.beginTransaction();
transaction.begin();
session.saveOrUpdate(account);
transaction.commit();


Top
 Profile  
 
 Post subject: Re: Hibernate Problem with Update
PostPosted: Wed Jan 27, 2010 4:17 am 
Expert
Expert

Joined: Tue Jun 16, 2009 3:36 am
Posts: 990
I suggest you to enable P6spy logging (P6spy is free):
it shows you exactly what sql-statements (including commit/rollback statements) are executed against the db.

N.B.: Do you use JDBCTransactionFactory or JTA approach configuring a datasource?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.