Class Identifier<T>

  • Type Parameters:
    T - the owning entity class
    Direct Known Subclasses:
    Identifier.Composite, Identifier.Id

    public abstract class Identifier<T>
    extends java.lang.Object
    Represents a value of an attribute that forms part of the natural key of an entity.
    See Also:
    NaturalId
    • Constructor Detail

      • Identifier

        public Identifier()
    • Method Detail

      • namedValues

        public abstract java.util.Map<java.lang.String,​java.lang.Object> namedValues()
      • id

        public static <T,​I> Identifier.Id<T> id​(javax.persistence.metamodel.SingularAttribute<T,​I> attribute,
                                                      I id)
      • id

        public static <T,​I> Identifier.Id<T> id​(java.lang.String attributeName,
                                                      java.lang.Object id)
      • id

        public static <T,​I> Identifier.Id<T> id​(java.lang.Class<T> entityClass,
                                                      java.lang.String attributeName,
                                                      java.lang.Object id)