-->
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: Problems with Chapter 1 Refence guide code
PostPosted: Mon Jul 17, 2006 12:18 pm 
Newbie

Joined: Wed Jul 12, 2006 4:40 am
Posts: 2
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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 17, 2006 8:09 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Sorry but there is not enough information.
Are you using the JDBC-ODBC bridge? Don't - as its not good enough for use with hibernate.


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.