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: 115
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:Does flush() sync with the db or the L2 cache?
Next Topic:getting PSQLException Can't infer the SQL type to use with Native Query call
Goto Forum:
  


Current Time: Fri Sep 22 22:35:09 GMT 2017

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

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