-->
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: Update not working
PostPosted: Mon Aug 01, 2005 3:55 am 
Newbie

Joined: Mon Aug 01, 2005 3:42 am
Posts: 1
Hi,

I am using Hibernate 3.0 together with JBoss 4.0.3.RC1, using my session factory as a JMX service within JBoss.

Everything works fine except the fact, that "update" statements are simply not carried out in the database.

The create and query-statements ("select") all work fine.

Here is the code between openSession and session.close():

Code:
Transaction tx=session.beginTransaction();

Code:
session.update(project);

Code:
tx.commit();


The "project" object is handed to the persisting method as a parameter.

I checked that the object has a valid id when it enters the method (so that it is not considered transient), but no changes are made in the database when executing the method. I don't get any error messages, it seems as if nothing happens at all...

I hope that someone can help me with this problem!

mateun[/code]


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 01, 2005 5:39 am 
Regular
Regular

Joined: Wed Jul 27, 2005 2:33 am
Posts: 118
Please post your hibernate log


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.