I have checked the log and to me it's seems ok. But again, the objects are stored correctly in the DB. I think this is more a collection-usage-problem for my side, or maybe a remoting problem.
Here's what the log says:
2006-02-27 10:33:32,264 [2756] DEBUG NHibernate.Impl.SessionImpl [(null)] - opened session 2006-02-27 10:33:32,483 [2756] DEBUG NHibernate.Engine.Cascades [(null)] - unsaved-value: 0 2006-02-27 10:33:32,483 [2756] DEBUG NHibernate.Impl.SessionImpl [(null)] - SaveOrUpdate() unsaved instance 2006-02-27 10:33:32,483 [2756] DEBUG NHibernate.Impl.SessionImpl [(null)] - saving [DBLib.DataObject.Character#<null>] 2006-02-27 10:33:32,483 [2756] DEBUG NHibernate.Impl.SessionImpl [(null)] - executing insertions 2006-02-27 10:33:32,499 [2756] DEBUG NHibernate.Impl.WrapVisitor [(null)] - Wrapped collection in role: DBLib.DataObject.Character.Items 2006-02-27 10:33:32,514 [2756] DEBUG NHibernate.Engine.Cascades [(null)] - unsaved-value: 0 2006-02-27 10:33:32,514 [2756] DEBUG NHibernate.Persister.EntityPersister [(null)] - Inserting entity: DBLib.DataObject.Character (native id) 2006-02-27 10:33:32,514 [2756] DEBUG NHibernate.Impl.BatcherImpl [(null)] - Opened new IDbCommand, open IDbCommands :1 2006-02-27 10:33:32,514 [2756] DEBUG NHibernate.Impl.BatcherImpl [(null)] - Building an IDbCommand object for the SqlString: INSERT INTO COT_CHARACTER (USER_ID, STAT1, NAME, STAT3, STAT2, ID) VALUES (:USER_ID, :STAT1, :NAME, :STAT3, :STAT2, default) 2006-02-27 10:33:32,514 [2756] DEBUG NHibernate.Persister.EntityPersister [(null)] - Dehydrating entity: [DBLib.DataObject.Character#<null>] 2006-02-27 10:33:32,514 [2756] DEBUG NHibernate.Engine.Cascades [(null)] - unsaved-value: 0 2006-02-27 10:33:32,514 [2756] DEBUG NHibernate.Type.Int32Type [(null)] - binding '1' to parameter: 0 2006-02-27 10:33:32,514 [2756] DEBUG NHibernate.Type.Int32Type [(null)] - binding '5' to parameter: 1 2006-02-27 10:33:32,514 [2756] DEBUG NHibernate.Type.StringType [(null)] - binding 'TestChar' to parameter: 2 2006-02-27 10:33:32,514 [2756] DEBUG NHibernate.Type.Int32Type [(null)] - binding '5' to parameter: 3 2006-02-27 10:33:32,514 [2756] DEBUG NHibernate.Type.Int32Type [(null)] - binding '5' to parameter: 4 2006-02-27 10:33:32,514 [2756] DEBUG NHibernate.SQL [(null)] - INSERT INTO COT_CHARACTER (USER_ID, STAT1, NAME, STAT3, STAT2, ID) VALUES (?, ?, ?, ?, ?, default) 2006-02-27 10:33:32,514 [2756] DEBUG NHibernate.SQL [(null)] - p0 = '1' 2006-02-27 10:33:32,514 [2756] DEBUG NHibernate.SQL [(null)] - p1 = '5' 2006-02-27 10:33:32,514 [2756] DEBUG NHibernate.SQL [(null)] - p2 = 'TestChar' 2006-02-27 10:33:32,514 [2756] DEBUG NHibernate.SQL [(null)] - p3 = '5' 2006-02-27 10:33:32,514 [2756] DEBUG NHibernate.SQL [(null)] - p4 = '5' 2006-02-27 10:33:32,514 [2756] DEBUG NHibernate.Connection.DriverConnectionProvider [(null)] - Obtaining IDbConnection from Driver 2006-02-27 10:33:33,092 [2756] DEBUG NHibernate.Impl.BatcherImpl [(null)] - Closed IDbCommand, open IDbCommands :0 2006-02-27 10:33:33,092 [2756] DEBUG NHibernate.Impl.BatcherImpl [(null)] - Opened new IDbCommand, open IDbCommands :1 2006-02-27 10:33:33,092 [2756] DEBUG NHibernate.Impl.BatcherImpl [(null)] - Building an IDbCommand object for the SqlString: values IDENTITY_VAL_LOCAL() 2006-02-27 10:33:33,092 [2756] DEBUG NHibernate.SQL [(null)] - values IDENTITY_VAL_LOCAL() 2006-02-27 10:33:33,092 [2756] DEBUG NHibernate.Impl.BatcherImpl [(null)] - Opened Reader, open Readers :1 2006-02-27 10:33:33,092 [2756] DEBUG NHibernate.Persister.AbstractEntityPersister [(null)] - Natively generated identity: 22 2006-02-27 10:33:33,092 [2756] DEBUG NHibernate.Impl.BatcherImpl [(null)] - Closed Reader, open Readers :0 2006-02-27 10:33:33,092 [2756] DEBUG NHibernate.Impl.BatcherImpl [(null)] - Closed IDbCommand, open IDbCommands :0 2006-02-27 10:33:33,092 [2756] DEBUG NHibernate.Impl.SessionImpl [(null)] - flushing session 2006-02-27 10:33:33,092 [2756] DEBUG NHibernate.Impl.SessionImpl [(null)] - Flushing entities and processing referenced collections 2006-02-27 10:33:33,108 [2756] DEBUG NHibernate.Impl.AbstractVisitor [(null)] - Processing collection for role DBLib.DataObject.Character.Items 2006-02-27 10:33:33,108 [2756] DEBUG NHibernate.Impl.SessionImpl [(null)] - Collection found: [DBLib.DataObject.Character.Items#22], was: [<unreferenced>] 2006-02-27 10:33:33,108 [2756] DEBUG NHibernate.Impl.SessionImpl [(null)] - Processing unreferenced collections 2006-02-27 10:33:33,108 [2756] DEBUG NHibernate.Impl.SessionImpl [(null)] - scheduling collection removes/(re)creates/updates 2006-02-27 10:33:33,108 [2756] DEBUG NHibernate.Impl.SessionImpl [(null)] - Flushed: 0 insertions, 0 updates, 0 deletions to 1 objects 2006-02-27 10:33:33,108 [2756] DEBUG NHibernate.Impl.SessionImpl [(null)] - Flushed: 1 (re)creations, 0 updates, 0 removals to 2 collections 2006-02-27 10:33:33,108 [2756] DEBUG NHibernate.Impl.Printer [(null)] - listing entities: 2006-02-27 10:33:33,124 [2756] DEBUG NHibernate.Impl.Printer [(null)] - DBLib.DataObject.Character{Id=22, Owner=User#1, Stat1=5, Name=TestChar, Stat3=5, Items=[], Stat2=5} 2006-02-27 10:33:33,124 [2756] DEBUG NHibernate.Impl.SessionImpl [(null)] - executing flush 2006-02-27 10:33:33,124 [2756] DEBUG NHibernate.Impl.SessionImpl [(null)] - post flush 2006-02-27 10:33:33,124 [2756] DEBUG NHibernate.Impl.SessionImpl [(null)] - closing session 2006-02-27 10:33:33,124 [2756] DEBUG NHibernate.Impl.SessionImpl [(null)] - disconnecting session 2006-02-27 10:33:33,124 [2756] DEBUG NHibernate.Connection.ConnectionProvider [(null)] - Closing connection 2006-02-27 10:33:33,124 [2756] DEBUG NHibernate.Impl.SessionImpl [(null)] - transaction completion
|