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.
|
|