java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.ORMetadata
org.eclipse.persistence.internal.jpa.metadata.structures.StructMetadata

public class StructMetadata extends ORMetadata
Defines the metadata for the @Struct annotation for mapping ObjectRelationshipDataTypeDescriptor. 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 initialized in the initXMLObject method. - when loading from annotations, the constructor accepts the metadata accessor this metadata was loaded from. Used it to look up any 'companion' annotation needed for processing. - methods should be preserved in alphabetical order.
Since:
EclipseLink 2.3
  • Constructor Details

    • StructMetadata

      public StructMetadata()
      INTERNAL: Used for XML loading.
    • StructMetadata

      public StructMetadata(MetadataAnnotation struct, MetadataAccessor accessor)
      INTERNAL: Used for annotation loading.
  • Method Details

    • equals

      public boolean equals(Object objectToCompare)
      INTERNAL: Used for xml merging.
      Specified by:
      equals in class ORMetadata
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • process

      public void process(MetadataDescriptor descriptor)
      INTERNAL: Switch the descriptor to the correct type and set the structure name and properties.
    • getFields

      public List<String> getFields()
      INTERNAL: Used for OX mapping.
    • getName

      public String getName()
      INTERNAL: Used for OX mapping.
    • setFields

      public void setFields(List<String> fields)
      INTERNAL: Used for OX mapping.
    • setName

      public void setName(String name)
      INTERNAL: Used for OX mapping.