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: 124
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:

http://stackoverflow.com/questions/5818373/jpa-does-the-jpa- 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?

Karsten
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: Tue Apr 16 16:03:06 GMT 2024

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

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

Back to the top