Hi all,
Hibernate version:
3.0
Mapping documents:
Code:
<discriminator column="type" type="string"/>
...
<subclass name="Org" discriminator-value="E">
<property name="property" type="string" length="128"/>
</subclass>
Name and version of the database you are using:postgresql
I am trying to load all entities of type Org. For some reason it does not work if I use strings or characters for the discriminator. It only returns values if I change the above mapping to
Code:
<discriminator column="type" type="integer"/>
...
<subclass name="Org" discriminator-value="1">
<property name="property" type="string" length="128"/>
</subclass>
I am using the Criterion to build the query. It is via a join on which i put a restriction "class" must be Org.
Any suggestions will be appreciated.
Thanks
[/code]