hello,
i have a class with a composite-id, i wanted to implement the version based strategy to distinguish between saved and unsaved values as the doc says:
Quote:
As an alternative, you may also set the unsaved-value attribute on a <version> (or <timestamp>) element
to specify a value that indicates a new transient instance.
what i've done is:
Code:
<composite-id name="comp_id" class="AnB_PK" unsaved-value="myVersionAttr">
<version column="version" name="myVersionAttr" type="int" />
but the dtd doesn't allow other value than "any/none" for the unsaved-value attribute.
so how should i relate the version and the unsaved-value attribute?
regards
Gerardo.