Hi
I have a coposite primary key like this:
Code:
<composite-id>
<key-property name="fieldName" column="FIELD_NAME"/>
<key-many-to-one name="reportTable" class="ReportTable" column="REPORT_TABLES_ID"/>
</composite-id>
<property name="fieldDesc" column="FIELD_DESC"/>
But wenn i change the properties of such a Object, i can only change the value from the property "fieldDesc":
Code:
update
REPORT_FIELDS
set
FIELD_DESC=?,
where
FIELD_NAME=? and REPORT_TABLES_ID=?
It sets only the property field "fieldDesc". How can I make, that it also updates the propertys from the composite-id? When I change the name as an example?
greets