I build my composite id using a set of columns, now I need to be able to trim a value returned by one of the columns. I have created a custom user type to trim strings.
If I use the custom type within the “composite-id” xml node the type doesn’t work , if I use it out side it works.
Has any body seen this behaviour ?
Extract of the mapping used ....
Code:
....
<composite-id name="IdBuilding" class="....">
<key-property name="Code" column="...." >
<type name="TrimString">
<param name="length">10</param>
</type>
</key-property>
...
</composite-id>
....
<property name="Code" column="...." >
<type name="TrimString">
<param name="length">10</param>
</type>
.....
</property>