-->
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: SchemaExport chokes on composite-id
PostPosted: Wed Jun 01, 2005 5:57 pm 
Regular
Regular

Joined: Fri Mar 26, 2004 11:45 am
Posts: 75
I am trying to get SchemaExport to work with tables that have composite-ids. SchemaExport works fine when I have a regular id element, but throws

"org.hibernate.MappingException: component class not found: org.waterford.product.data.db.hibernate.ObjStud"

when I use composite-id as follows:

<hibernate-mapping package="org.waterford.product.data.db.hibernate" >

<class
name="ObjStud"
table="ObjStud"
lazy="false"
>
<composite-id>
<key-many-to-one
name="objid"
class="Objective">
<column name="objid" sql-type="bigint" />
</key-many-to-one>
<key-many-to-one
name="studid"
class="StudInfo"
>
<column name="studid" index="idx_objstud_studid" sql-type="bigint" />
</key-many-to-one>
</composite-id>
</class>
</hibernate-mapping>

Is this a bug or am I doing something wrong?

Thanks.


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.