I have a mapping as follows...
Code:
<class entity-name="Author" table="Author" node="content">
<id name="id" type="integer">
<column name="AUTHOR_ID" not-null="true" />
<generator class="identity" />
</id>
<property name="email" column="email" node="author" type="string" unique="true" />
</class>
so my Author class has a db generated surrogate key for joins etc but I want to be able to update data in the db based on an alternative key, email address? Is this possible? How would I go about it if so. Thankyou in advance.