I have a situation where I need to join tables on an object in an ORM class hierarchy where the join column is NOT the primary key of the base class. Here is an example of
Not sure how to do this with JPA/Annotations, but with Hibernate XML mapping files it would be something like: