Code:
<class name="Ofnt4bq1" table="OFNV4BQ1">
<composite-id name="id" class="Ofnt4bq1Id">
<key-property name="offenderNumber" type="us.nc.state.doc.ws.core.hibernate.usertypes.TrimedStringUserType" column="CMDORNUM" length="7" />
<key-property name="testType" type="us.nc.state.doc.ws.core.hibernate.usertypes.TrimedStringUserType" column="CITESTYP" length="4" />
<key-property name="testDate" type="date" column="CITESTDT" length="10" />
</composite-id>
...
...
</class>
Instead of having mapping as above, try to make minor changes in your mapping(shown below) so that it makes your life easier.
Code:
<class name="Ofnt4bq1" table="OFNV4BQ1">
<composite-id>
<key-property name="offenderNumber" type="us.nc.state.doc.ws.core.hibernate.usertypes.TrimedStringUserType" column="CMDORNUM" length="7" />
<key-property name="testType" type="us.nc.state.doc.ws.core.hibernate.usertypes.TrimedStringUserType" column="CITESTYP" length="4" />
<key-property name="testDate" type="date" column="CITESTDT" length="10" />
</composite-id>
...
...
</class>
and make your original class
Ofnt4bq1 extend
Ofnt4bq1Id. Super class has defined all the properties of composite-id element i.e. offenderNumber, testType, testDate similar to your existing implementation.