title: JPA: is @PrimaryKeyJoinColumn(...) the same as @JoinColumn(..., insertable = ?, updatable = ?)?
body: <p>Can you derive from the JPA spec, if <code>@PrimaryKeyJoinColumn(...)</code>, which doesn't have the insertable and updatable parameters, is the same as </p>
  
  <pre><code>@JoinColumn(..., insertable = false, updatable = false)
  </code></pre>
  
  <p>or</p>
  
  <p><strike>    @JoinColumn(..., insertable = true, updatable = true)</strike></p>
  
  <p>when used on regular (non-inheritance) associations? Should they be interchangable? What are the insertable and updatable properties set to? Are they set to anything at all? Note, I'm only targeting the read-only attribute that both (seem to) implement...</p>
  
  <p>I'm getting rather inconsistent mapping exception with EclipseLink and Hibernate...</p>
  
  <p>Here's the <code>@PrimaryKeyJoinColumn</code> JavaEE 5 + 6 Javadoc:</p>
  
  <p><a href="http://download.oracle.com/javaee/5/api/javax/persistence/PrimaryKeyJoinColumn.html" rel="noreferrer">PrimaryKeyJoinColumn (JavaEE 5)</a><br>
  <a href="http://download.oracle.com/javaee/6/api/javax/persistence/PrimaryKeyJoinColumn.html" rel="noreferrer">PrimaryKeyJoinColumn (JavaEE 6)</a></p>
  
  <p>Quote:</p>
  
  <blockquote>
    <p>... and it may be used in a OneToOne mapping in which the primary key of the referencing entity is used as a foreign key to the referenced entity.</p>
  </blockquote>