Hi,
I'm trying to get a small inheritance example working, but it seems to be that my mapping document is missing something. When I try to run my example I get the following error :
Caused by: org.xml.sax.SAXParseException: The content of element type "class" must match "(meta*,(cache|jcs-cache)?,(id|composite-id),discriminator?,(version|timestamp)?,(property|many-to-one|one-to-one|component|dynamic-component|any|map|set|list|bag|idbag|array|primitive-array)*,(subclass*|joined-subclass*))".
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException
Could anyone tell me what is missing in the following mapping document :
<hibernate-mapping> <class name="org.hibernate.test.Parent" table="Parent" > <id name="id" unsaved-value="0"> <generator class="uuid.string"/> </id> <property name="parentString" column="ParentString" type="string"/> <property name="type" column="type" type="character"/> <discriminator column="type" type="character"/> <subclass name="org.hibernate.test.ChildA" discriminator-value="A"> <property name="childAString" type="string"/> </subclass> </class>
</hibernate-mapping>
Thanks!!!
|