Annotation Interface Document
Identifies a domain object to be persisted to MongoDB.
- Author:
- Jon Brisbin, Oliver Gierke, Christoph Strobl
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionDefines the collation to apply when executing a query or creating indexes.The collection the document representing the entity is supposed to be stored in.Defines the default language to be used with this document.The collection the document representing the entity is supposed to be stored in.
-
Element Details
-
value
The collection the document representing the entity is supposed to be stored in. If not configured, a default collection name will be derived from the type's name. The attribute supports SpEL expressions to dynamically calculate the collection to based on a per operation basis.- Returns:
- the name of the collection to be used.
- Default:
- ""
-
collection
The collection the document representing the entity is supposed to be stored in. If not configured, a default collection name will be derived from the type's name. The attribute supports SpEL expressions to dynamically calculate the collection to based on a per operation basis.- Returns:
- the name of the collection to be used.
- Default:
- ""
-
language
String languageDefines the default language to be used with this document.- Returns:
- an empty String by default.
- Since:
- 1.6
- Default:
- ""
-
collation
Defines the collation to apply when executing a query or creating indexes.- Returns:
- an empty
String
by default. - Since:
- 2.2
- Default:
- ""
-