T
- the owning entity classpublic abstract class Identifier<T>
extends java.lang.Object
org.hibernate.annotations.NaturalId
Modifier and Type | Class and Description |
---|---|
static class |
Identifier.Composite<T> |
static class |
Identifier.Id<T> |
Constructor and Description |
---|
Identifier() |
Modifier and Type | Method and Description |
---|---|
static <T,I> Identifier<T> |
composite(Identifier.Id<T>... ids) |
static <T,I> Identifier.Id<T> |
id(java.lang.Class<T> entityClass,
java.lang.String attributeName,
java.lang.Object id) |
static <T,I> Identifier.Id<T> |
id(javax.persistence.metamodel.SingularAttribute<T,I> attribute,
I id) |
static <T,I> 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() |
public abstract Identifier.Id<T>[] ids()
public abstract java.util.Map<java.lang.String,java.lang.Object> namedValues()
public static <T,I> Identifier.Id<T> id(javax.persistence.metamodel.SingularAttribute<T,I> attribute, I id)
public static <T,I> Identifier.Id<T> id(java.lang.String attributeName, java.lang.Object id)
public static <T,I> Identifier.Id<T> id(java.lang.Class<T> entityClass, java.lang.String attributeName, java.lang.Object id)
@SafeVarargs public static <T,I> Identifier<T> composite(Identifier.Id<T>... ids)