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 after insert
PostPosted: Mon Apr 14, 2008 6:50 am 
Newbie

Joined: Mon Apr 14, 2008 6:40 am
Posts: 1
I have problem when doing save I got this error message
"Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) for Dimas2.Domain.ClaimStarChart instance with identifier: HOCJ084000047"

I use NUnit for my testing and then i confused why it's update after inserting. This is apart of NUnit test:
DEBUG NHibernate.Impl.BatcherImpl - Building an IDbCommand object for the SqlString: INSERT INTO trxClaimStarChart (distSystemNo, vcdSystemNo, cscIDNo, cscClaimedDate, sfSystemNo, cscTotalClaimablePoints, cscTotalSelectedPoints, cscTotalUsedPoints, cscTotalVoidedPoints, cscTotalDealerCost, cscTotalDistributorCost, cscTotalToBePaid, cscCreditLimit, cscOutStandingAmount, cscOnAccount, cscPaymentMethod, cscPaidAmount, cscCardCharged, cscIsPaid, createdUser, createdDate, lMUser, lMDate, lSDate, cscSystemNo) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
DEBUG NHibernate.Persister.Entity.AbstractEntityPersister - Dehydrating entity: [Dimas2.Domain.ClaimStarChart#HOCJ084000047]
DEBUG NHibernate.Type.StringType - binding 'HODIST20070900000003' to parameter: 0
DEBUG NHibernate.Type.StringType - binding 'HOVB081000027' to parameter: 1
DEBUG NHibernate.Type.StringType - binding 'CSC014-0827-0003' to parameter: 2
DEBUG NHibernate.Type.DateTimeType - binding '14/04/2008' to parameter: 3
DEBUG NHibernate.Type.StringType - binding 'HOSE083000006' to parameter: 4
DEBUG NHibernate.Type.Int32Type - binding '0' to parameter: 5
DEBUG NHibernate.Type.Int32Type - binding '0' to parameter: 6
DEBUG NHibernate.Type.Int32Type - binding '0' to parameter: 7
DEBUG NHibernate.Type.Int32Type - binding '0' to parameter: 8
DEBUG NHibernate.Type.DoubleType - binding '0' to parameter: 9
DEBUG NHibernate.Type.DoubleType - binding '0' to parameter: 10
DEBUG NHibernate.Type.DoubleType - binding '0' to parameter: 11
DEBUG NHibernate.Type.DoubleType - binding '0' to parameter: 12
DEBUG NHibernate.Type.DoubleType - binding '0' to parameter: 13
DEBUG NHibernate.Type.DoubleType - binding '0' to parameter: 14
DEBUG NHibernate.Type.Int32Type - binding '0' to parameter: 15
DEBUG NHibernate.Type.DoubleType - binding '0' to parameter: 16
DEBUG NHibernate.Type.DecimalType - binding '0' to parameter: 17
DEBUG NHibernate.Type.BooleanType - binding 'False' to parameter: 18
DEBUG NHibernate.Type.StringType - binding 'HOUGM200711000000001' to parameter: 19
DEBUG NHibernate.Type.DateTimeType - binding '14/04/2008' to parameter: 20
DEBUG NHibernate.Type.StringType - binding 'HOUGM200711000000001' to parameter: 21
DEBUG NHibernate.Type.DateTimeType - binding '14/04/2008' to parameter: 22
DEBUG NHibernate.Type.DateTimeType - binding '01/01/1901' to parameter: 23
DEBUG NHibernate.Type.StringType - binding 'HOCJ084000047' to parameter: 24
DEBUG NHibernate.SQL - INSERT INTO trxClaimStarChart (distSystemNo, vcdSystemNo, cscIDNo, cscClaimedDate, sfSystemNo, cscTotalClaimablePoints, cscTotalSelectedPoints, cscTotalUsedPoints, cscTotalVoidedPoints, cscTotalDealerCost, cscTotalDistributorCost, cscTotalToBePaid, cscCreditLimit, cscOutStandingAmount, cscOnAccount, cscPaymentMethod, cscPaidAmount, cscCardCharged, cscIsPaid, createdUser, createdDate, lMUser, lMDate, lSDate, cscSystemNo) VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21, @p22, @p23, @p24); @p0 = 'HODIST20070900000003', @p1 = 'HOVB081000027', @p2 = 'CSC014-0827-0003', @p3 = '14/04/2008 17:11:37', @p4 = 'HOSE083000006', @p5 = '0', @p6 = '0', @p7 = '0', @p8 = '0', @p9 = '0', @p10 = '0', @p11 = '0', @p12 = '0', @p13 = '0', @p14 = '0', @p15 = '0', @p16 = '0', @p17 = '0', @p18 = 'False', @p19 = 'HOUGM200711000000001', @p20 = '14/04/2008 17:11:37', @p21 = 'HOUGM200711000000001', @p22 = '14/04/2008 17:11:37', @p23 = '01/01/1901 00:00:00', @p24 = 'HOCJ084000047'
DEBUG NHibernate.Impl.BatcherImpl - Closed IDbCommand, open IDbCommands: 0
DEBUG NHibernate.Impl.BatcherImpl - Opened new IDbCommand, open IDbCommands: 1
DEBUG NHibernate.Impl.BatcherImpl - Building an IDbCommand object for the SqlString: SELECT claimstarc_.version as version194_ FROM trxClaimStarChart claimstarc_ WHERE claimstarc_.cscSystemNo=?
DEBUG NHibernate.Type.StringType - binding 'HOCJ084000047' to parameter: 0
DEBUG NHibernate.SQL - SELECT claimstarc_.version as version194_ FROM trxClaimStarChart claimstarc_ WHERE claimstarc_.cscSystemNo=@p0; @p0 = 'HOCJ084000047'
DEBUG NHibernate.Impl.BatcherImpl - Opened IDataReader, open IDataReaders: 1
DEBUG NHibernate.Driver.NHybridDataReader - running NHybridDataReader.Dispose()
DEBUG NHibernate.Impl.BatcherImpl - Closed IDataReader, open IDataReaders :0
DEBUG NHibernate.Impl.BatcherImpl - Closed IDbCommand, open IDbCommands: 0
DEBUG NHibernate.Persister.Entity.AbstractEntityPersister - Inserting entity: [Dimas2.Domain.ClaimStarChartDistributor#HOCM084000047]
DEBUG NHibernate.Persister.Entity.AbstractEntityPersister - Version: System.Byte[]
DEBUG NHibernate.Impl.BatcherImpl - Opened new IDbCommand, open IDbCommands: 1
DEBUG NHibernate.Impl.BatcherImpl - Building an IDbCommand object for the SqlString: INSERT INTO trxClaimStarChartDistributor (cscdiSeqNo, sVersion, lMDate, lSDate, distSystemNo, cscSystemNo, cscdiSystemNo) VALUES (?, ?, ?, ?, ?, ?, ?)
DEBUG NHibernate.Persister.Entity.AbstractEntityPersister - Dehydrating entity: [Dimas2.Domain.ClaimStarChartDistributor#HOCM084000047]
DEBUG NHibernate.Type.Int32Type - binding '1' to parameter: 0
DEBUG NHibernate.Type.Int32Type - binding '0' to parameter: 1
DEBUG NHibernate.Type.DateTimeType - binding '14/04/2008' to parameter: 2
DEBUG NHibernate.Type.DateTimeType - binding '01/01/1901' to parameter: 3
DEBUG NHibernate.Type.StringType - binding 'HODIST20070900000003' to parameter: 4
DEBUG NHibernate.Type.StringType - binding 'HOCJ084000047' to parameter: 5
DEBUG NHibernate.Type.StringType - binding 'HOCM084000047' to parameter: 6
DEBUG NHibernate.SQL - INSERT INTO trxClaimStarChartDistributor (cscdiSeqNo, sVersion, lMDate, lSDate, distSystemNo, cscSystemNo, cscdiSystemNo) VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6); @p0 = '1', @p1 = '0', @p2 = '14/04/2008 17:11:37', @p3 = '01/01/1901 00:00:00', @p4 = 'HODIST20070900000003', @p5 = 'HOCJ084000047', @p6 = 'HOCM084000047'
DEBUG NHibernate.Impl.BatcherImpl - Closed IDbCommand, open IDbCommands: 0
DEBUG NHibernate.Impl.BatcherImpl - Opened new IDbCommand, open IDbCommands: 1
DEBUG NHibernate.Impl.BatcherImpl - Building an IDbCommand object for the SqlString: SELECT claimstarc_.version as version130_ FROM trxClaimStarChartDistributor claimstarc_ WHERE claimstarc_.cscdiSystemNo=?
DEBUG NHibernate.Type.StringType - binding 'HOCM084000047' to parameter: 0
DEBUG NHibernate.SQL - SELECT claimstarc_.version as version130_ FROM trxClaimStarChartDistributor claimstarc_ WHERE claimstarc_.cscdiSystemNo=@p0; @p0 = 'HOCM084000047'
DEBUG NHibernate.Impl.BatcherImpl - Opened IDataReader, open IDataReaders: 1
DEBUG NHibernate.Driver.NHybridDataReader - running NHybridDataReader.Dispose()
DEBUG NHibernate.Impl.BatcherImpl - Closed IDataReader, open IDataReaders :0
DEBUG NHibernate.Impl.BatcherImpl - Closed IDbCommand, open IDbCommands: 0
DEBUG NHibernate.Persister.Entity.AbstractEntityPersister - Updating entity: [Dimas2.Domain.ClaimStarChart#HOCJ084000047]
DEBUG NHibernate.Persister.Entity.AbstractEntityPersister - Existing version: System.Byte[] -> New Version: System.Byte[]
DEBUG NHibernate.Impl.BatcherImpl - Opened new IDbCommand, open IDbCommands: 1
DEBUG NHibernate.Impl.BatcherImpl - Building an IDbCommand object for the SqlString: UPDATE trxClaimStarChart SET distSystemNo = ?, vcdSystemNo = ?, cscIDNo = ?, cscClaimedDate = ?, sfSystemNo = ?, cscTotalClaimablePoints = ?, cscTotalSelectedPoints = ?, cscTotalUsedPoints = ?, cscTotalVoidedPoints = ?, cscTotalDealerCost = ?, cscTotalDistributorCost = ?, cscTotalToBePaid = ?, cscCreditLimit = ?, cscOutStandingAmount = ?, cscOnAccount = ?, cscPaymentMethod = ?, cscPaidAmount = ?, cscCardCharged = ?, cscIsPaid = ?, createdUser = ?, createdDate = ?, lMUser = ?, lMDate = ?, lSDate = ? WHERE cscSystemNo = ? AND version = ?
DEBUG NHibernate.Persister.Entity.AbstractEntityPersister - Dehydrating entity: [Dimas2.Domain.ClaimStarChart#HOCJ084000047]
DEBUG NHibernate.Type.StringType - binding 'HODIST20070900000003' to parameter: 0
DEBUG NHibernate.Type.StringType - binding 'HOVB081000027' to parameter: 1
DEBUG NHibernate.Type.StringType - binding 'CSC014-0827-0003' to parameter: 2
DEBUG NHibernate.Type.DateTimeType - binding '14/04/2008' to parameter: 3
DEBUG NHibernate.Type.StringType - binding 'HOSE083000006' to parameter: 4
DEBUG NHibernate.Type.Int32Type - binding '0' to parameter: 5
DEBUG NHibernate.Type.Int32Type - binding '0' to parameter: 6
DEBUG NHibernate.Type.Int32Type - binding '0' to parameter: 7
DEBUG NHibernate.Type.Int32Type - binding '0' to parameter: 8
DEBUG NHibernate.Type.DoubleType - binding '0' to parameter: 9
DEBUG NHibernate.Type.DoubleType - binding '0' to parameter: 10
DEBUG NHibernate.Type.DoubleType - binding '0' to parameter: 11
DEBUG NHibernate.Type.DoubleType - binding '0' to parameter: 12
DEBUG NHibernate.Type.DoubleType - binding '0' to parameter: 13
DEBUG NHibernate.Type.DoubleType - binding '0' to parameter: 14
DEBUG NHibernate.Type.Int32Type - binding '0' to parameter: 15
DEBUG NHibernate.Type.DoubleType - binding '0' to parameter: 16
DEBUG NHibernate.Type.DecimalType - binding '0' to parameter: 17
DEBUG NHibernate.Type.BooleanType - binding 'True' to parameter: 18
DEBUG NHibernate.Type.StringType - binding 'HOUGM200711000000001' to parameter: 19
DEBUG NHibernate.Type.DateTimeType - binding '14/04/2008' to parameter: 20
DEBUG NHibernate.Type.StringType - binding 'HOUGM200711000000001' to parameter: 21
DEBUG NHibernate.Type.DateTimeType - binding '14/04/2008' to parameter: 22
DEBUG NHibernate.Type.DateTimeType - binding '01/01/1901' to parameter: 23
DEBUG NHibernate.Type.StringType - binding 'HOCJ084000047' to parameter: 24
DEBUG NHibernate.Type.BinaryType - binding '0000000000000000' to parameter: 25
DEBUG NHibernate.SQL - UPDATE trxClaimStarChart SET distSystemNo = @p0, vcdSystemNo = @p1, cscIDNo = @p2, cscClaimedDate = @p3, sfSystemNo = @p4, cscTotalClaimablePoints = @p5, cscTotalSelectedPoints = @p6, cscTotalUsedPoints = @p7, cscTotalVoidedPoints = @p8, cscTotalDealerCost = @p9, cscTotalDistributorCost = @p10, cscTotalToBePaid = @p11, cscCreditLimit = @p12, cscOutStandingAmount = @p13, cscOnAccount = @p14, cscPaymentMethod = @p15, cscPaidAmount = @p16, cscCardCharged = @p17, cscIsPaid = @p18, createdUser = @p19, createdDate = @p20, lMUser = @p21, lMDate = @p22, lSDate = @p23 WHERE cscSystemNo = @p24 AND version = @p25; @p0 = 'HODIST20070900000003', @p1 = 'HOVB081000027', @p2 = 'CSC014-0827-0003', @p3 = '14/04/2008 17:11:37', @p4 = 'HOSE083000006', @p5 = '0', @p6 = '0', @p7 = '0', @p8 = '0', @p9 = '0', @p10 = '0', @p11 = '0', @p12 = '0', @p13 = '0', @p14 = '0', @p15 = '0', @p16 = '0', @p17 = '0', @p18 = 'True', @p19 = 'HOUGM200711000000001', @p20 = '14/04/2008 17:11:37', @p21 = 'HOUGM200711000000001', @p22 = '14/04/2008 17:11:37', @p23 = '01/01/1901 00:00:00', @p24 = 'HOCJ084000047', @p25 = 'System.Byte[]'
DEBUG NHibernate.Impl.BatcherImpl - Closed IDbCommand, open IDbCommands: 0
ERROR NHibernate.Impl.SessionImpl - could not synchronize database state with session
NHibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) for Dimas2.Domain.ClaimStarChart instance with identifier: HOCJ084000047
at NHibernate.Persister.Entity.AbstractEntityPersister.Check(Int32 rows, Object id, Int32 tableNumber, IExpectation expectation, IDbCommand statement)
at NHibernate.Persister.Entity.AbstractEntityPersister.Update(Object id, Object[] fields, Object[] oldFields, Boolean[] includeProperty, Int32 j, Object oldVersion, Object obj, SqlCommandInfo sql, ISessionImplementor session)
at NHibernate.Persister.Entity.AbstractEntityPersister.Update(Object id, Object[] fields, Int32[] dirtyFields, Boolean hasDirtyCollection, Object[] oldFields, Object oldVersion, Object obj, ISessionImplementor session)
at NHibernate.Impl.ScheduledUpdate.Execute()
at NHibernate.Impl.SessionImpl.Execute(IExecutable executable)
at NHibernate.Impl.SessionImpl.ExecuteAll(IList list)
at NHibernate.Impl.SessionImpl.Execute()
DEBUG NHibernate.Impl.ConnectionManager - registering flush end
DEBUG Spring.Transaction.Support.AbstractPlatformTransactionManager - Initiating transaction rollback on commit exception.
DEBUG Spring.Transaction.Support.AbstractPlatformTransactionManager - Rolling back Hibernate transaction on Session [NHibernate.Impl.SessionImpl]
DEBUG NHibernate.Transaction.AdoTransaction - rollback
DEBUG NHibernate.Transaction.AdoTransaction - running AdoTransaction.Dispose()
DEBUG NHibernate.Impl.ConnectionManager - aggressively releasing database connection
DEBUG NHibernate.Connection.ConnectionProvider - Closing connection
DEBUG NHibernate.Impl.SessionImpl - transaction completion
DEBUG Spring.Transaction.Support.AbstractPlatformTransactionManager - Triggering afterCompletion synchronization
DEBUG Spring.Transaction.Support.TransactionSynchronizationManager - Clearing transaction synchronization
DEBUG Spring.Transaction.Support.TransactionSynchronizationManager - Removed value [Spring.Data.Support.ConnectionHolder] for key [Spring.Data.Common.DbProvider] from thread [TestRunnerThread]
DEBUG NHibernate.Connection.DriverConnectionProvider - Obtaining IDbConnection from Driver
DEBUG Spring.Transaction.Support.AbstractPlatformTransactionManager - Not closing pre-bound Hibernate Session [NHibernate.Impl.SessionImpl] after transaction
DEBUG Spring.Transaction.Support.TransactionSynchronizationManager - Removed value [Spring.Data.NHibernate.SessionHolder] for key [NHibernate.Impl.SessionFactoryImpl] from thread [TestRunnerThread]
DEBUG Dimas2.NHibernate.SessionScope - Closing single Hibernate Session in SessionScope
DEBUG Spring.Data.NHibernate.SessionFactoryUtils - Closing Hibernate Session
DEBUG NHibernate.Impl.SessionImpl - closing session
DEBUG NHibernate.Impl.BatcherImpl - running BatcherImpl.Dispose(true)
DEBUG NHibernate.Connection.ConnectionProvider - Closing connection
DEBUG NHibernate.Impl.SessionImpl - transaction completion

I'm very confused with the underline statement above why it's auto update after inserting.

This is my mapping in xml file
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
<class name="Dimas2.Domain.ClaimStarChart, Dimas2.Dao" table="trxClaimStarChart">
<id name="systemNo" type="String" column ="cscSystemNo" unsaved-value="null">
<generator class="Dimas2.Dao.NHibernate.HibernateSystemNoGeneratorForDimas, Dimas2.Dao.NHibernate">
<param name="db-column-code-value">DBCODE</param>
<param name="prefix-value">CJ</param>
</generator>
</id>
<version name="version" column="version" type="Dimas2.NHibernateUserType.TimestampUserType, Dimas2.NHibernateUserType" generated="always" unsaved-value="null"/>
<many-to-one name="distributor" class="Dimas2.Domain.Distributor, Dimas2.Dao">
<column name="distSystemNo" length="20" sql-type="varchar" not-null="false"/>
</many-to-one>
<many-to-one name="vanguardCalendarDetail" class="Dimas2.Domain.VanguardCalendarD, Dimas2.Dao">
<column name="vcdSystemNo" length="20" sql-type="varchar" not-null="false"/>
</many-to-one>
<property name="idNo" type="String">
<column name="cscIDNo" sql-type="varchar(20)" not-null="false"/>
</property>
<property name="claimedDate" type="System.DateTime">
<column name="cscClaimedDate" sql-type="datetime" not-null="false"/>
</property>
<many-to-one name="salesForce" class="Dimas2.Domain.SalesForce, Dimas2.Dao">
<column name="sfSystemNo" length="20" sql-type="varchar" not-null="false"/>
</many-to-one>
<property name="totalClaimablePoints" type="System.Int32">
<column name="cscTotalClaimablePoints" sql-type="int" not-null="false"/>
</property>
<property name="totalSelectedPoints" type="System.Int32">
<column name="cscTotalSelectedPoints" sql-type="int" not-null="false"/>
</property>
<property name="totalUsedPoints" type="System.Int32">
<column name="cscTotalUsedPoints" sql-type="int" not-null="false"/>
</property>
<property name="totalVoidedPoints" type="System.Int32">
<column name="cscTotalVoidedPoints" sql-type="int" not-null="false"/>
</property>
<property name="totalDealerCost" type="Double">
<column name="cscTotalDealerCost" sql-type="money" not-null="false"/>
</property>
<property name="totalDistributorCost" type="Double">
<column name="cscTotalDistributorCost" sql-type="money" not-null="false"/>
</property>
<property name="totalToBePaid" type="Double">
<column name="cscTotalToBePaid" sql-type="money" not-null="false"/>
</property>
<property name="creditLimit" type="Double">
<column name="cscCreditLimit" sql-type="money" not-null="false"/>
</property>
<property name="outStandingAmount" type="Double">
<column name="cscOutStandingAmount" sql-type="money" not-null="false"/>
</property>
<property name="onAccount" type="Double">
<column name="cscOnAccount" sql-type="money" not-null="false"/>
</property>
<property name="paymentMethod" type="System.Int32">
<column name="cscPaymentMethod" sql-type="int" not-null="false"/>
</property>
<property name="paymentAmount" type="Double">
<column name="cscPaidAmount" sql-type="money" not-null="false"/>
</property>
<property name="cardChargedPercentage" type="Decimal">
<column name="cscCardCharged" sql-type="numeric(5,2)" not-null="false"/>
</property>
<property name="isPaid" type="Boolean">
<column name="cscIsPaid" sql-type="bit" not-null="false"/>
</property>
<property name="createdUser" type="String">
<column name="createdUser" length ="20" sql-type="varchar" not-null="false"/>
</property>
<property name="createdDate" type="System.DateTime">
<column name="createdDate" sql-type="datetime" not-null="false"/>
</property>
<property name="lMUser" type="String">
<column name="lMUser" length ="20" sql-type="varchar" not-null="false"/>
</property>
<property name="lMDate" type="System.DateTime">
<column name="lMDate" sql-type="datetime" not-null="false"/>
</property>
<property name="lSDate" type="System.DateTime">
<column name="lSDate" sql-type="datetime" not-null="false"/>
</property>
<!--
<bag name="claimStarChartDs" inverse="true" lazy="true" cascade="all-delete-orphan" order-by ="cscdlSeqNo">
<key column="cscSystemNo"/>
<one-to-many class="Dimas2.Domain.ClaimStarChartD, Dimas2.Dao"/>
</bag>
<bag name="claimStarChartDProducts" inverse="true" lazy="true" cascade="all-delete-orphan" order-by ="cscdPSeqNo">
<key column="cscSystemNo"/>
<one-to-many class="Dimas2.Domain.ClaimStarChartDProduct, Dimas2.Dao"/>
</bag>

-->
<bag name="claimStarChartDistributors" inverse="true" lazy="true" cascade="all-delete-orphan" order-by ="cscdiSeqNo">
<key column="cscSystemNo"/>
<one-to-many class="Dimas2.Domain.ClaimStarChartDistributor, Dimas2.Dao"/>
</bag>
</class>
</hibernate-mapping>



<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
<class name="Dimas2.Domain.ClaimStarChartDistributor, Dimas2.Dao" table="trxClaimStarChartDistributor">
<id name="systemNo" type="String" column ="cscdiSystemNo" unsaved-value="null">
<generator class="Dimas2.Dao.NHibernate.HibernateSystemNoGeneratorForDimas, Dimas2.Dao.NHibernate">
<param name="db-column-code-value">DBCODE</param>
<param name="prefix-value">CM</param>
</generator>
</id>
<version name="version" column="version" type="Dimas2.NHibernateUserType.TimestampUserType, Dimas2.NHibernateUserType" generated="always" unsaved-value="null"/>
<property name="seqNo" type="System.Int32">
<column name="cscdiSeqNo" sql-type="int" not-null="false"/>
</property>
<property name="synchVersion" type="System.Int32">
<column name="sVersion" sql-type="int" not-null="false"/>
</property>
<property name="lMDate" type="System.DateTime">
<column name="lMDate" sql-type="datetime" not-null="false"/>
</property>
<property name="lSDate" type="System.DateTime">
<column name="lSDate" sql-type="datetime" not-null="false"/>
</property>
<many-to-one name="distributor" class="Dimas2.Domain.Distributor, Dimas2.Dao">
<column name="distSystemNo" length="20" sql-type="varchar" not-null="false"/>
</many-to-one>
<many-to-one name="claimStarChart" class="Dimas2.Domain.ClaimStarChart, Dimas2.Dao">
<column name="cscSystemNo" length="20" sql-type="varchar" not-null="false"/>
</many-to-one>
</class>
</hibernate-mapping>


I really need help. why it's auto update after inserting ?
Thanks for attention


Top
 Profile  
 
 Post subject: Update After Insert
PostPosted: Thu Jun 26, 2008 7:02 pm 
Newbie

Joined: Thu Jun 26, 2008 6:58 pm
Posts: 1
Hello,

I am also facing exact same issue. I dont understand why there is an update after the insert for complex mappings.

Did you get to know why was it happening for you? Was it expected or was it a bug on your side?

Please suggest.

Thanks.
-yb


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.