I just found out that officially relationships/foreign keys to non-primary key columns aren't supported by JPA. See here:
Does the JPA specification allow references to non-primary key columns?
Why do such relationships map in Hibernate and EclipseLink nontheless (only in JPA 1.0 syntax as in the example posted there)??
It appears that these JPA providers just map the columns naively, which I think is a good thing, but I'd like to know explicitly. Is it coincidence? Is it intended?