-->
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: save record not displayed in db,while auto increment is incr
PostPosted: Tue Jun 26, 2007 5:47 am 
Newbie

Joined: Mon Jun 25, 2007 11:51 pm
Posts: 1
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:3.0

HI I have made a small application using struts and hibernate,
and I am trying to save a record in the db I am using mysql for that,
the problem that i am facing is that I am getting the sql query on my tomcat console and every thing goes fine,but the data is not saved in the db,however
the auto increment counter is increasing every time.Whereas load is working fine when used instead of save for particular row.

Any help in context to this will be deeply welcomed.

thanks in advance

Sudeep Srivastava
sudeepj2ee@gmail.com

_________________
sudeep srivastava
sudeepj2ee@gmail.com


Top
 Profile  
 
 Post subject: problem for commit
PostPosted: Tue Jun 26, 2007 5:56 am 
Newbie

Joined: Thu Jun 21, 2007 6:44 am
Posts: 9
Location: chennai
may i know what kind of database r u using...

better use transaction and commit() method..


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:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.