Cannot insert more than one different Event to the same Person, although I can do it directly from SQL Server.
Last messages are:
[java] Hibernate: select events0_.PERSON_ID as PERSON2_1_, events0_.EVENT_ID as EVENT1_1_, event1_.EVENT_ID as EVENT1_0_0_, event1_.EVENT_DATE as EVENT2_0_0_, event1_.title as title0_0_ from PERSON_EVENT events0_ left outer join EVENTS event1_ on events0_.EVENT_ID=event1_.EVENT_ID where events0_.PERSON_ID=?
[java] 18:06:26,289 DEBUG AbstractBatcher:424 - preparing statement
[java] 18:06:26,320 DEBUG LongType:80 - binding '2' to parameter: 1
[java] 18:06:26,320 DEBUG AbstractBatcher:327 - about to open ResultSet (open ResultSets: 0, globally: 0)
[java] 18:06:26,320 DEBUG Loader:1040 - result set contains (possibly empty) collection: [events.Person.events#2]
[java] 18:06:26,320 DEBUG CollectionLoadContext:84 - uninitialized collection: initializing
[java] 18:06:26,320 DEBUG Loader:682 - processing result set
[java] 18:06:26,320 DEBUG Loader:687 - result set row: 0
[java] 18:06:26,320 DEBUG LongType:122 - returning '4' as column: EVENT1_0_0_
[java] 18:06:26,320 DEBUG Loader:1164 - result row: EntityKey[events.Event#4]
[java] 18:06:26,320 DEBUG Loader:1347 - Initializing object from ResultSet: [events.Event#4]
[java] 18:06:26,320 DEBUG AbstractEntityPersister:1860 - Hydrating entity: [events.Event#4]
[java] 18:06:26,320 DEBUG TimestampType:122 - returning '2006-07-17 18:06:14' as column: EVENT2_0_0_
[java] 18:06:26,320 DEBUG StringType:122 - returning 'My Event ' as column: title0_0_
[java] 18:06:26,320 INFO LongType:132 - could not read column value from result set: PERSON2_1_; [Microsoft][ODBC SQL Server Driver]Índice descriptor no válido [java] 18:06:26,336 DEBUG AbstractBatcher:334 - about to close ResultSet (open ResultSets: 1, globally: 1)
[java] 18:06:26,336 DEBUG AbstractBatcher:319 - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
[java] 18:06:26,336 DEBUG AbstractBatcher:470 - closing statement
|