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.  [ 1 post ] 
Author Message
 Post subject: Unable to insert values in Association table
PostPosted: Thu Nov 08, 2007 6:18 am 
Newbie

Joined: Wed Nov 07, 2007 7:25 am
Posts: 1
Location: INDIA
Hi,
I am using Hibernate 3.0 and am running a transaction to insert data into multiple tables. On inspection of log files have found that the insertion is done only for the Master tables with a primary Id but for Association tables with composite Id the Hibernate insert statement is not called and if there are 5 rows to be added only the Fifth row is inserted when the next insert statement is called for a Master table. But there are no errors thrown.

The issue was resolved when i moved the code snippet for the Association table to the end of the file such that the Commit Transaction statement comes after it.

Could any one let me know the root cause for this.

Thanks and Regards,
Abrar MJ


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.