I searched High and Low and cannot get a definitive answer, so hopefully someone can help me here.
This is my Hibernate mapping:
<class name="org.acord.standards.pc_surety.acord1_12_0.xml.PCPOLICY" table="ZEUS_REP.POLICY_INQUIRY_MV">
<id name="id" column="POLICY_NO" type="com.ze.policyinquiry.persistence.C25UserType">
<generator class="com.ze.policyinquiry.persistence.C25Generator"/>
</id>
<property name="policyStatusCd" column="POLICY_STATUS" type="string"/>
<property name="controllingStateProvCd" column="POLICY_STATE" type="string"/>
</class>
With or without a custom generator I get the same exception:
java.lang.ClassCastException: org.acord.standards.pc_surety.acord1_12_0.xml.C25
at org.hibernate.loader.Loader.getKeyFromResultSet(Loader.java:1097)
at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:565)
at org.hibernate.loader.Loader.doQuery(Loader.java:701)
Am I following the wrong lead? Is there a different problem?
Thanks in advance,
-Allon
|