Skip to main content



      Home
Home » Eclipse Projects » EclipseLink » Is @PrimaryKeyJoinColumn(...) the same as...?
Is @PrimaryKeyJoinColumn(...) the same as...? [message #639749] Wed, 17 November 2010 11:28 Go to next message
Eclipse UserFriend
Hello,

using @PrimaryKeyJoinColumn, which doesn't have the insertable and updatable parameters:

Is @PrimaryKeyJoinColumn interchangable with

@JoinColumn(..., insertable = false, insertable = false)

or

@JoinColumn(..., insertable = true, insertable = true)

?

What are the insertable and updatable properties set to? Are they set to anything at all?

Are they interchangable at all? I'm getting rather inconsistent mapping exception with EclipseLink and Hibernate. Is @PrimaryKeyJoinColumn reserved for inheritance and secondary tables?

Karsten
Re: Is @PrimaryKeyJoinColumn(...) the same as...? [message #639982 is a reply to message #639749] Thu, 18 November 2010 10:35 Go to previous messageGo to next message
Eclipse UserFriend
Yes.
Re: Is @PrimaryKeyJoinColumn(...) the same as...? [message #640055 is a reply to message #639982] Thu, 18 November 2010 15:22 Go to previous messageGo to next message
Eclipse UserFriend
James wrote on Thu, 18 November 2010 10:35
Yes.


Equivalent to the first one. Also see

http://stackoverflow.com/questions/4205628/jpa-is-primarykey joincolumn-the-same-as-joincolumn-insertable-u

EclipseLink has problems with exchanging @PrimaryKeyJoinColumn(...) and @JoinColumn(..., insertable = false, updatable = false). I'll post a link to a bug report and a standalone JavaSE, HSQLDB, Ant example soon.

James, thanks again for helping on this.

Thanks
Karsten
Re: Is @PrimaryKeyJoinColumn(...) the same as...? [message #640089 is a reply to message #640055] Thu, 18 November 2010 22:23 Go to previous message
Eclipse UserFriend
Bug filed under:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=330628

Karsten
Previous Topic:Null Property persisted with value Zero
Next Topic:Problems executing a Stored Procedure
Goto Forum:
  


Current Time: Tue Jul 22 21:14:58 EDT 2025

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

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

Back to the top