Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Relationships/FKs to non-PK columns
Relationships/FKs to non-PK columns [message #667803] Mon, 02 May 2011 09:51
Karsten Wutzke is currently offline Karsten WutzkeFriend
Messages: 122
Registered: July 2009
Senior Member
I just found out that officially relationships/foreign keys to non-primary key columns aren't supported by JPA. See here: specification-allow-references-to-non-primary-key-columns

Why do such relationships map in EclipseLink nontheless (only in JPA 1.0 syntax as in the example posted there)??

It appears that EclipseLink just maps the columns naively, which I think is a good thing, but I'd like to know explicitly. Is it coincidence? Is it intended? Is there anything in the docs where it supports this scenario?

Previous Topic:Apparent interface violation in CriteriaBuilderImpl
Next Topic:MOXy: can't xml-bindings xml-transient parent class when it has same name in different package
Goto Forum:

Current Time: Fri Apr 10 20:35:44 GMT 2020

Powered by FUDForum. Page generated in 0.02178 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top