-->
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.  [ 1 post ] 
Author Message
 Post subject: Problems Will Collection--Invalid Character in Generated SQL
PostPosted: Mon Jul 04, 2005 8:55 am 
Newbie

Joined: Sat May 07, 2005 7:04 pm
Posts: 2
I don't understand this one. It appears that something is going wrong with the SQL Generation:

Stack Trace with SQL:

008:53:58,937 INFO [STDOUT] Hibernate: select _roles0_.role_id as role_id__, _roles0_.USER_PROFILE_ID as USER_PRO4___, _roles0_.role_id as role_id0_, _roles0_.role_type_id as role_typ2_0_, _roles0_.user_profile_id as user_pro3_0_ from ROLE _roles0_ where _roles0_.USER_PROFILE_ID=?
08:53:58,953 WARN [JDBCExceptionReporter] SQL Error: 911, SQLState: 42000
08:53:58,953 ERROR [JDBCExceptionReporter] ORA-00911: invalid character

Mapping File:

<set
name="_roles"
lazy="false"
inverse="true"
cascade="all-delete-orphan"
sort="unsorted"
>

<key
column="USER_PROFILE_ID"
>
</key>

<one-to-many
class="com.dood.userprofile.Role"
/>

</set>

Rest of Stack Trace:

08:53:58,953 ERROR [JDBCExceptionReporter] could not initialize collection: [com.dood.userprofile.UserProfile._roles#61]
java.sql.SQLException: ORA-00911: invalid character

This example follows what Hibernate in Action states should be done and the database schema was generated from my hibernate mapping files. Any ideas?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.