title: OpenJPA: Super class property not found for AttributeOverride
body: <p>When trying to map an inherited property using AttributeOverride annotation, OpenJPA throws an error that it cannot find the property in the super class.  I'm not sure how to map this the correct way.</p>
  
  <p><strong>Error</strong></p>
  
  <p><code>Embedded property "Order.mailingAddress" declares a mapping override for "addressLine", but that is not a persistent property in the embedded type.</code></p>
  
  <p><strong>Code</strong></p>
  
  <pre><code>@Embeddable
  public class Address{
      private String addressLine;
      private String city;
      private String state;
      private String zip;
  
      //getters and setters
  }
  
  @Embeddable
  public class ExtendedAddress extends Address{
      private String additionalAddressLine;
  
      //getters and setters
  }
  
  @Entity
  public class Order {
      @Id
      private id;
  
      @OneToOne
      private Customer customer;
  
      @Embedded
      @AttributeOverrides(value={
              @AttributeOverride(name="addressLine", 
                   column=@Column(name="mailingAddressLine")),
              @AttributeOverride(name="additionalAddressLine", 
                    column=@Column(name="mailingAddressLine2")),
              @AttributeOverride(name="city", 
                    column=@Column(name="mailingAddressCity")),
              @AttributeOverride(name="state", 
                    column=@Column(name="mailingAddressState")),
              @AttributeOverride(name="zip", 
                    column=@Column(name="mailingAddressZip")),
      })
      private ExtendedAddress mailingAddress;
  
      @Embedded
      @AttributeOverrides(value={
              @AttributeOverride(name="addressLine", 
                   column=@Column(name="billingAddressLine")),
              @AttributeOverride(name="city", 
                    column=@Column(name="billingAddressCity")),
              @AttributeOverride(name="state", 
                    column=@Column(name="billingAddressState")),
              @AttributeOverride(name="zip", 
                    column=@Column(name="billingAddressZip")),
      })
      private Address billingAddress;
  
      //getters and setters
      //hashcode
      //equals
  }
  </code></pre>
  
  <p>SQL</p>
  
  <pre><code>CREATE TABLE Orders (
    id INT PRIMARY KEY GENERATED ALWAYS,
    mailingAddressLine VARCHAR(45) DEFAULT NULL,
    mailingAddressLine2 VARCHAR(45) DEFAULT NULL,
    mailingAddressCity VARCHAR(45) DEFAULT NULL,
    mailingAddressState CHAR(2) DEFAULT NULL,
    mailingAddressZip CHAR(9) DEFAULT NULL,
    billingAddressLine VARCHAR(45) DEFAULT NULL,
    billingAddressCity VARCHAR(45) DEFAULT NULL,
    billingAddressState CHAR(2) DEFAULT NULL,
    billingAddressZip CHAR(9) DEFAULT NULL
  )
  </code></pre>