Here is how I have done mapping in my AuthenticationPolicy.hbm.xml
<joined-subclass name =”com.xxx.ChildAuthenticationPolicy1″ table =”CHILD_AUTHENTICATION_POLICY1″
extends=”com.xxx.AuthenticationPolicy”>
<key column=”ID”/>
<property name=”xxx” column=”COLUMN_XXX”/>
</joined-subclass>
<joined-subclass name =”com.xxx.CHILDAuthenticationPolicy2″ table =”CHILD_AUTHENTICATION_POLICY2″
extends=”com.xxx.AuthenticationPolicy”>
<key column=”ID”/>
<property name=”serverPinRequired” column=”SERVER_PIN_REQUIRED”/>
</joined-subclass>
Now when I try to get the AuthenticationPolicyDAO via spring… I get the error in class: com.xxx.AbstractAuthenticationPolicy, getter method of property: id
and later the error says object is not an instance of declaring class
The Getter method is in the AbstractAuthenticationPolicy and in the childrenAuthenticationPolicy.java too