public class MappingRelationalEntityInformation<T,ID> extends PersistentEntityInformation<T,ID> implements RelationalEntityInformation<T,ID>
RelationalEntityInformation
implementation using a RelationalPersistentEntity
instance to lookup the
necessary information. Can be configured with a custom table name.
Entity types that do not declare an explicit Id type fall back to Long
as Id type.
Constructor and Description |
---|
MappingRelationalEntityInformation(RelationalPersistentEntity<T> entity)
Creates a new
MappingRelationalEntityInformation for the given RelationalPersistentEntity . |
MappingRelationalEntityInformation(RelationalPersistentEntity<T> entity,
Class<ID> fallbackIdType)
Creates a new
MappingRelationalEntityInformation for the given RelationalPersistentEntity and
fallback identifier type. |
MappingRelationalEntityInformation(RelationalPersistentEntity<T> entity,
String customTableName)
Creates a new
MappingRelationalEntityInformation for the given RelationalPersistentEntity and
custom table name. |
Modifier and Type | Method and Description |
---|---|
String |
getIdAttribute() |
Class<ID> |
getIdType() |
SqlIdentifier |
getTableName()
Returns the name of the table the entity shall be persisted to.
|
getId, getJavaType, isNew
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId, getRequiredId, isNew
getJavaType
public MappingRelationalEntityInformation(RelationalPersistentEntity<T> entity)
MappingRelationalEntityInformation
for the given RelationalPersistentEntity
.entity
- must not be null.public MappingRelationalEntityInformation(RelationalPersistentEntity<T> entity, @Nullable Class<ID> fallbackIdType)
MappingRelationalEntityInformation
for the given RelationalPersistentEntity
and
fallback identifier type.entity
- must not be null.fallbackIdType
- can be null.public MappingRelationalEntityInformation(RelationalPersistentEntity<T> entity, String customTableName)
MappingRelationalEntityInformation
for the given RelationalPersistentEntity
and
custom table name.entity
- must not be null.customTableName
- can be null.public SqlIdentifier getTableName()
RelationalEntityInformation
getTableName
in interface RelationalEntityInformation<T,ID>
public String getIdAttribute()
public Class<ID> getIdType()
getIdType
in interface EntityInformation<T,ID>
getIdType
in class PersistentEntityInformation<T,ID>
Copyright © 2017–2020 Pivotal Software, Inc.. All rights reserved.