Hibernate version:2.1.6
If I have a collection (in this case a List) of components, that I have mapped as follows:
<list>
<key name="owning_class_id"/>
<composite-element class="foo">
<property name=p1/>
<property name=p2/>
<property name=p3/>
</composite-element>
</list>
Do I have to write (and register) a mapping file for class "foo"?
If so, what parameters do I use for the <id> mapping tag in foo.hbm.xml?
If not, why the heck am I getting a:
"No persister for: foo"
error message when I try and persist the owning class of the collection?
Nick
|