InheritanceType « Join « JPA Q&A





1. @DiscriminatorFormula with InheritanceType.JOINED    forum.hibernate.org

Using annotations version 3.4.0GA & hibernate version 3.3.2GA. Per the hibernate documentation I can use a table per subclass with a discriminator ( http://docs.jboss.org/hibernate/stable/ ... criminator ). I also need to specify a discriminator formula. Is this supported via annotations? The annotation documentation refers to using the @DiscriminatorFormula with single table inheritance, not joined. Is this the only supported use via ...

2. Criteria API, nested references and InheritanceType.JOINED    forum.hibernate.org

Hi there, I have a problem with ordering in a quite complex mapping. Here's the setup (simplified for brevity): Code: @Entity(name="content") public class Content { @Column private String externalAuthor; } @Entity(name="user") public class User { @Column private String name; } @Inheritance(strategy=InheritanceType.JOINED) class AbstractArticle { ...

3. Troubles with InheritanceType.JOINED    forum.hibernate.org

Hi, I read tutorials and found out that the DiscriminatorValue resp the DiscriminatorColumn are only for usage with Single Table per Class Hierarchy (InheritanceType.SINGLE_TABLE). Although this hint was not the solution of my troubles it directed my point of view to the @PrimaryKeyJoinColumn. In spite of the fact that it is not necessary I tried out the PrimaryKeyJoinColumn. It is not ...