title: orm.xml does not override annotations
body: <p>I ran into an issue where JPA on Derby defaults the BLOB size to 64KB.  I can resolve this by setting the <strong>columnDefinition="BLOB(128M)"</strong>.  However, this fails during integration testing against another RDBMS like MS SQL.  What I'd like to do is set the columnDefinition using the orm.xml.  However, my attempts have been futile and am unable to get this to work.  It doesn't appear that the values set in <strong>orm.xml</strong> are overriding the annotations as I would expect.</p>
  
  <p>I am using JPA 1.0, Toplink Essentials 2.1.60.</p>
  
  <p>I have the following entity annotated as such:</p>
  
  <pre><code>package foo;
  
  @Entity
  @Table(name = "Attachment")
  public class Attachment implements Serializable {
  
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      private Integer id;
      @Version
      @Column(name = "VERSION")
      private Integer version;
      @Column(name = "FILE_NAME", nullable = false)
      private String name;
      @Lob
      @Basic
      @Column(name = "ATTACHED_FILE", nullable = false)
      private byte[] file;
  }
  </code></pre>
  
  <p>persistence.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence"         
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
      xsi:schemaLocation="http://java.sun.com/xml/ns/persistence 
      http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"&gt;
      &lt;persistence-unit name="LAS-OOC" transaction-type="RESOURCE_LOCAL"&gt;
          &lt;provider&gt;${jpa.provider}&lt;/provider&gt;
          &lt;!-- this isn't required, i know, but I'm trying everything I can think of --&gt;
          &lt;mapping-file&gt;META-INF/orm.xml&lt;/mapping-file&gt;
          &lt;class&gt;foo.Attachment&lt;/class&gt;
          &lt;properties&gt;
          ...
          &lt;/properties&gt;
      &lt;/persistence-unit&gt;
  &lt;/persistence&gt;
  </code></pre>
  
  <p>orm.xml (located in META-INF)</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  &lt;entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm" 
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
        xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm 
        http://java.sun.com/xml/ns/persistence/orm_1_0.xsd" version="1.0"&gt;
  
      &lt;persistence-unit-metadata&gt;
          &lt;persistence-unit-defaults&gt;
              &lt;schema&gt;TEST&lt;/schema&gt;
          &lt;/persistence-unit-defaults&gt;
      &lt;/persistence-unit-metadata&gt;
  
      &lt;entity class="foo.Attachment" access="FIELD" &gt;
          &lt;attributes&gt;
              &lt;basic name="file"&gt;
                  &lt;!-- 
                       I'm using maven profiles to set the 'jpa.blob.definition' property.  I even tried changing the column name.
                   --&gt; 
                  &lt;column nullable="true" name="ATTACHED_FILE_MODIFIED" column-definition="${jpa.blob.definition}" /&gt;
              &lt;/basic&gt;
          &lt;/attributes&gt;
      &lt;/entity&gt;
  &lt;/entity-mappings&gt;
  </code></pre>
  
  <p>It IS interesting to note that if I change the entity class or basic name attribute in the orm.xml it complains that it's invalid/not found.  So that tells me it is reading it but it's not overriding the annotation specified for <strong>file</strong>.  Even the default schema isn't being used.</p>
  
  <p>Isn't the orm.xml suppose to override the annotations?  Shouldn't this be simple?</p>