Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
3
Mapping documents:
<hibernate-mapping>
<typedef name="WebsiteType" class="emst.persistence.GenericEnumUserType">
<param name="enumClass">emst.website.WebsiteType</param>
</typedef>
<class name="emst.dao.command.CommandObject" abstract="true">
<id name="coId" column="coId" type="long">
<generator class="uuid"/>
</id>
<union-subclass name="emst.dao.command.objects.CommandActionTrigger" table="CO_CommandActionTrigger">
<property name="note"/>
<property name="command"/>
</union-subclass>
.......
</hibernate-mapping>
I have an interface, and i've implemented all the subclasses as union-subclass I was wondering if there is a way to have an id that's only in the database. I don't want to have to add a getter and setter in every class that implements the interface.
any help would be appreciated, thanks.
Joe