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
|
|