Hello
This page here
http://docs.jboss.org/hibernate/core/3. ... l-join-12mshows the following example of
<class name="Address">
<id name="id" column="addressId">
<generator class="native"/>
</id>
<join table="PersonAddress"
inverse="true"
optional="true">
<key column="addressId"/>
<many-to-one name="person"
column="personId"
not-null="true"/>
</join>
</class>
to undertake a many-to-one mapping if you have link tables.
However when I try and insert this into a component mapping I get the following error
The content of element type "component" must match "(meta*,tuplizer*,parent?,(property|many-to-one|one-to-one|component|dynamic-component|any|map|set|list|bag|array|primitive-array)*)
It works if I insert it at the <class> level. Can I not use join-table notation in a <component>?
And if not how would I do this?
Cheers