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 Wutzke
Messages: 112
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:merge not updating pk IDs
Next Topic:MOXy: can't xml-bindings xml-transient parent class when it has same name in different package
Goto Forum:
  


Current Time: Tue Sep 23 14:33:57 GMT 2014

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

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