I am struggling with this error
org.hibernate.MappingException: Unable to find column with logical name: StateID in TableName and this is my Entity definition.
@Entity() @Table(schema="public",name="MyTable") @IdClass(ejb.MyID.class) @Inheritance(strategy=InheritanceType.TABLE_PER_CLASS) @DiscriminatorColumn(name="StateType",length=5,discriminatorType=DiscriminatorType.STRING) @DiscriminatorValue("ST")
@Inheritance(strategy=InheritanceType.JOINED)
@Inheritance(strategy=InheritanceType.TABLE_PER_CLASS)
Turn your InheritanceType to SINGLE_TABLE and see if it works.