Joined: Wed Jun 21, 2006 7:54 am Posts: 1
|
I'd like to embed a class and override the column name. Couldn't it be done as below with attribute-override? A bug?
<embedded name="carrierCode">
<attribute-override name="code"> <column name="carrier_code"/> </attribute-override>
</embedded>
The embeddable is defined as:
<embeddable class="CarrierCode" metadata-complete="true">
<attributes>
<basic name="code"/>
</attributes>
</embeddable>
The CarrierCode class just holds the field "code" with getter/setter.
...still, hibernate tries to persist the property "code" to a (non existent) column "code". Instead of "carrier_code". Why?
Regards / Lennart
|
|