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 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(Class<T> entityClass, String attributeName, Object id)
static <T> Identifier.Id<T>
id(String attributeName, Object id)
abstract Identifier.Id<T>[]
ids()
abstract Map<String,Object>
namedValues()
-
-
-
Method Detail
-
ids
public abstract Identifier.Id<T>[] ids()
-
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(String attributeName, Object id)
-
id
public static <T> Identifier.Id<T> id(Class<T> entityClass, String attributeName, Object id)
-
composite
@SafeVarargs public static <T> Identifier<T> composite(Identifier.Id<T>... ids)
-
-