Hibernate @Embeddable class which extends another @Embeddable class, Properties not found for @OneToMany mapping
We are translating old xml based configuration to Annotation based configuration Situation There is a class which is annotated as @Embeddable(ParentPk.java) , another class extends this class which is @Embeddable(ChildPk.java) , this ChildPk.java is used as composite primary key in SomeOwnerClass.java , Which have foreign relation with another class SomeChildTable.java and tends to use properties col1 and col2 which are available in parent class of ChildPk.java but when query is executed hibernate does not finds col1 and col2 rather if I copy col1 and col2 in ChildPk.java from parent class