There are 2 tables that are mapped to 1 class. This works but when I want to update the object I don't know from which table it came. Is there a way to store or get the entity name?
Mapping:
<hibernate-mapping>
<class name="model.object.ObjectAttributeType" table="OBJECTPARAMETERTYPE" entity-name="OBJECTPARAMETERTYPE">
...
</class>
<class name="model.object.ObjectAttributeType" table="OBJECTPROPERTYTYPE" entity-name="OBJECTPROPERTYTYPE">
...
</class>
</hibernate-mapping>