public class JpaEntityMetadata extends java.lang.Object implements EntityMetadata<JpaAttributeMetadata>
EntityMetadata
for JPA.Constructor and Description |
---|
JpaEntityMetadata(org.springframework.data.repository.support.Repositories repositories,
javax.persistence.metamodel.EntityType<?> entityType) |
Modifier and Type | Method and Description |
---|---|
JpaAttributeMetadata |
attribute(java.lang.String name)
Get
AttributeMetadata by name. |
java.util.Map<java.lang.String,JpaAttributeMetadata> |
embeddedAttributes()
A Map of attribute metadata keyed on the attribute's name.
|
JpaAttributeMetadata |
idAttribute()
The
AttributeMetadata representing the ID of the entity. |
java.util.Map<java.lang.String,JpaAttributeMetadata> |
linkedAttributes()
A Map of linked attribute metadata keyed on the attribute's name.
|
java.lang.String |
toString() |
java.lang.Class<?> |
type()
The class of this entity.
|
JpaAttributeMetadata |
versionAttribute()
The
AttributeMetadata representing the version of the entity, if applicable. |
public JpaEntityMetadata(org.springframework.data.repository.support.Repositories repositories, javax.persistence.metamodel.EntityType<?> entityType)
public java.lang.Class<?> type()
EntityMetadata
type
in interface EntityMetadata<JpaAttributeMetadata>
public java.util.Map<java.lang.String,JpaAttributeMetadata> embeddedAttributes()
EntityMetadata
embeddedAttributes
in interface EntityMetadata<JpaAttributeMetadata>
public java.util.Map<java.lang.String,JpaAttributeMetadata> linkedAttributes()
EntityMetadata
linkedAttributes
in interface EntityMetadata<JpaAttributeMetadata>
public JpaAttributeMetadata idAttribute()
EntityMetadata
AttributeMetadata
representing the ID of the entity.idAttribute
in interface EntityMetadata<JpaAttributeMetadata>
AttributeMetadata
for the ID.public JpaAttributeMetadata versionAttribute()
EntityMetadata
AttributeMetadata
representing the version of the entity, if applicable.versionAttribute
in interface EntityMetadata<JpaAttributeMetadata>
AttributeMetadata
or null if no version attributes exists.public JpaAttributeMetadata attribute(java.lang.String name)
EntityMetadata
AttributeMetadata
by name.attribute
in interface EntityMetadata<JpaAttributeMetadata>
name
- The name of the attribute.AttributeMetadata
or null if that attribute doesn't exist.public java.lang.String toString()
toString
in class java.lang.Object