Class ComponentPropertyHolder

  • All Implemented Interfaces:
    PropertyHolder

    public class ComponentPropertyHolder
    extends AbstractPropertyHolder
    PropertyHolder for composites (Embeddable/Embedded).

    To facilitate code comments, I'll often refer to this example:

         @Embeddable
         @Convert( attributeName="city", ... )
         class Address {
             ...
             @Convert(...)
             public String city;
         }
    
         @Entity
         @Convert( attributeName="homeAddress.city", ... )
         class Person {
             ...
             @Embedded
             @Convert( attributeName="city", ... )
             public Address homeAddress;
         }
     

    As you can see, lots of ways to specify the conversion for embeddable attributes :(