Package org.hibernate.reactive.common
Class Identifier<T>
- java.lang.Object
-
- org.hibernate.reactive.common.Identifier<T>
-
- Type Parameters:
T
- the owning entity class
- Direct Known Subclasses:
Identifier.Composite
,Identifier.Id
@Incubating 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Identifier.Composite<T>
static class
Identifier.Id<T>
-
Constructor Summary
Constructors Constructor Description Identifier()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static <T> Identifier<T>
composite(Identifier.Id<T>... ids)
static <T,I>
Identifier.Id<T>id(jakarta.persistence.metamodel.SingularAttribute<T,I> attribute, I id)
static <T> Identifier.Id<T>
id(java.lang.Class<T> entityClass, java.lang.String attributeName, java.lang.Object id)
static <T> Identifier.Id<T>
id(java.lang.String attributeName, java.lang.Object id)
abstract Identifier.Id<T>[]
ids()
abstract java.util.Map<java.lang.String,java.lang.Object>
namedValues()
-
-
-
Method Detail
-
ids
public abstract Identifier.Id<T>[] ids()
-
namedValues
public abstract java.util.Map<java.lang.String,java.lang.Object> namedValues()
-
id
public static <T,I> Identifier.Id<T> id(jakarta.persistence.metamodel.SingularAttribute<T,I> attribute, I id)
-
id
public static <T> Identifier.Id<T> id(java.lang.String attributeName, java.lang.Object id)
-
id
public static <T> Identifier.Id<T> id(java.lang.Class<T> entityClass, java.lang.String attributeName, java.lang.Object id)
-
composite
@SafeVarargs public static <T> Identifier<T> composite(Identifier.Id<T>... ids)
-
-