How to apply @OneToMany on super class getter method in multiple subclasses with different target entity
问题 Stack I'm using JPA2.0 with Eclipselink 2.6.3 and Spring 4(JTA). Problem I'm trying to override the class A attribute with @OneToMany mapping in class B and class C (which is similar to class B ) so that I can change the target entity to class X and Z respectively while fetching results for class B. Class A has SINGLE_TABLE inheritance and class B & C are discriminator classes which is maintained by @classExtractor depending on some field value in class A. Class Z has TABLE_PER_CLASS