public class DerivedIdClassAccessor extends EmbeddedAccessor
A derived id class accessor is found within an entity's embedded id class and is a reference back to a parents id class. Key notes: - any metadata mapped from XML to this class must be compared in the equals method. - any metadata mapped from XML to this class must be handled in the merge method. (merging is done at the accessor/mapping level) - any metadata mapped from XML to this class must be initialized in the initXMLObject method. - methods should be preserved in alphabetical order.
Since:
EclipseLink 1.2
  • Constructor Details

    • DerivedIdClassAccessor

      public DerivedIdClassAccessor(MetadataAnnotatedElement accessibleObject, ClassAccessor classAccessor)
      INTERNAL: Constructor called from an Embedabble IdClass.
  • Method Details

    • equals

      public boolean equals(Object objectToCompare)
      INTERNAL:
      Overrides:
      equals in class EmbeddedAccessor
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class EmbeddedAccessor
    • isDerivedIdClass

      public boolean isDerivedIdClass()
      INTERNAL: Return true if this accessor is a derived id class accessor. That is, an EmbeddedId that has a portion of its accessors mapped through an owning entities ManyToOne relationship using a MapsId.
      Overrides:
      isDerivedIdClass in class MappingAccessor