Hi --
I'm trying to mix table per class and table per subclass mappings and I'm running into an exception when using property elements inside of the join element. I am using Hibernate 3.1.1
My mapping looks like this:
Code:
<subclass
name="com.x.app.gdl.lists.bean.FilterListItem"
discriminator-value="8"
>
<join table="FilterItem" fetch="select">
<property
name="inputQuery"
type="java.lang.String"
/>
<property
name="normalizedQuery"
type="java.lang.String"
/>
</join>
</subclass>
I am receiving the following errors:
17:00:56,951 ERROR main org.hibernate.util.XMLHelper$ErrorLogger - Error parsing XML: XML InputStream(186) Element "join" does not allow "property" here.
17:00:56,952 ERROR main org.hibernate.util.XMLHelper$ErrorLogger - Error parsing XML: XML InputStream(190) Element "join" does not allow "property" here.
17:00:56,953 ERROR main org.hibernate.util.XMLHelper$ErrorLogger - Error parsing XML: XML InputStream(194) Element "join" requires additional elements.
According to the example I'm following in the Hibernate 3 documentation, this shouldn't be a problem.
http://www.hibernate.org/hib_docs/v3/re ... ersubclass
Can anyone tell me what I'm doing wrong here?