I have a class Document that has a component of type MetaInfo. MetaInfo itself maintains a list of entries (class MetaInfoEntry).
I get the following exception:
No persister for: org.tdr.document.MetaInfoEntry
Why do I need a persister for this class?
Here is the mapping I use:
Code:
<hibernate-mapping>
<class name="eg.GenericDocumentData" table="document_values">
....
<component name="metaInfo" class="eg.MetaInfo">
<list name="entries" table="documents_meta_info"
cascade="all-delete-orphan">
<key column="document_id" />
<index column="idx" />
<composite-element class="eg.MetaInfoEntry">
<property name="element" type="java.lang.String" not-null="true" />
<property name="qualifier" type="java.lang.String" />
<property name="value" type="java.lang.String" not-null="true" />
</composite-element>
</list>
</component>
....
</class>
</hibernate-mapping>