public class JpaMetamodel extends Object
Metamodel
to be able to apply some fixes against bugs in provider implementations.Modifier and Type | Method and Description |
---|---|
boolean |
isJpaManaged(Class<?> type)
Returns whether the given type is managed by the backing JPA
Metamodel . |
boolean |
isMappedType(Class<?> entity)
Returns whether the given type is considered a mapped type, i.e. an actually JPA persisted entity, mapped
superclass or native JPA embeddable.
|
boolean |
isSingleIdAttribute(Class<?> entity,
String name,
Class<?> attributeType)
Returns whether the attribute of given name and type is the single identifier attribute of the given entity.
|
static JpaMetamodel |
of(javax.persistence.metamodel.Metamodel metamodel) |
public static JpaMetamodel of(javax.persistence.metamodel.Metamodel metamodel)
public boolean isJpaManaged(Class<?> type)
Metamodel
.type
- must not be null.public boolean isSingleIdAttribute(Class<?> entity, String name, Class<?> attributeType)
entity
- must not be null.name
- must not be null.attributeType
- must not be null.public boolean isMappedType(Class<?> entity)
entity
- must not be null.Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.