2 Replies Latest reply on Feb 21, 2006 7:49 AM by Emmanuel Bernard

    AttributeOverride when field is 2+ objects removed.

    Charles Kreps Newbie

      Say I have:
      - An @Embeddable class City, with a field "name".
      - An @Embeddable class Address with a field of type City.
      - An @Entity class Company with a field "name" of type Address.

      How, when the conflicting name is "twice removed" (City.name and Company.name), do I use the @AttributeOverride annotation in Company to change the "name" field from City when it is embedded in Company via Address?