@java.lang.SuppressWarnings("rawtypes")
public interface IdentityMapping
extends PropertyMapping
| Type Params | Return Type | Name and description |
|---|---|---|
|
public ValueGenerator |
getGenerator()
|
|
public java.lang.String[] |
getIdentifierName()The identifier property name(s). |
|
public java.lang.Class<?> |
getStoredAs()The native storage type for this identifier, which may differ from the declared Java type. |
| Methods inherited from class | Name |
|---|---|
interface PropertyMapping |
getClassMapping, getMappedForm |
The identifier property name(s). Usually there is just one identifier name, however in the case of a composite or natural identifier there may be serveral.
The native storage type for this identifier, which may differ from the declared Java type.
When non-null, the backend is expected to coerce identifier values between
the declared type and this type at write, read, and query time. Currently honored by
MongoDB GORM to support patterns like "declare String id, store BSON
ObjectId" without requiring per-call conversion in application code.
null to use the declared property type.