| Modifiers | Name | Description |
|---|---|---|
static java.lang.String |
INDEX_TYPE |
|
static java.lang.String |
INDEX_TYPE_2D |
|
static java.lang.String |
INDEX_TYPE_2DSPHERE |
| Type | Name and description |
|---|---|
java.lang.String |
field |
java.util.Map |
indexAttributes |
boolean |
referenceWhether this attribute is a database reference |
| Properties inherited from class | Properties |
|---|---|
class Property |
accessType, cascade, cascadeValidate, cascades, derived, enumType, enumType, fetchStrategy, formula, generator, inList, index, lazy, lazy, max, maxSize, min, minSize, name, nullable, orphanRemoval, reference, scale, targetName, unique |
| Constructor and description |
|---|
MongoAttribute() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
MongoAttribute |
field(java.lang.String name)Configures the field name to map to |
|
MongoAttribute |
geoIndex(java.lang.String indexType)Sets the geo index type |
|
java.lang.String |
getField()
|
|
java.util.Map |
getIndexAttributes()
|
|
MongoAttribute |
index(java.lang.String type)Configures the index type |
|
MongoAttribute |
indexAttributes(java.util.Map indexAttributes)Configures the index attributes |
|
void |
initIndexAttributes() |
|
void |
setField(java.lang.String name)Sets the field name to map to |
|
void |
setGeoIndex(java.lang.String indexType)Sets the geo index type |
|
void |
setIndex(java.lang.String type)Sets the index type |
|
void |
setIndexAttributes(java.util.Map indexAttributes)Sets index attributes |
| Methods inherited from class | Name |
|---|---|
class Attribute |
attr, attribute, setAttr, setAttribute |
class Property |
clone, configureExisting, configureExisting, fetch, fetch, getEnumType, getEnumTypeObject, getLazy, getName, getUniquenessGroup, isLazy, isUnique, isUniqueWithinGroup, name, setEnumType, setEnumType, setFetch, setLazy, setName, setRange, setSize, setUnique, setUnique, setUnique, setUniquenessGroup, unique, unique, unique |
Whether this attribute is a database reference
Configures the field name to map to
name - The name of the fieldSets the geo index type
indexType - The geo index type
Configures the index type
type - The index typeConfigures the index attributes
indexAttributes - The index attributesSets the field name to map to
name - The field nameSets the geo index type
indexType - The geo index typeSets the index type
type - The index typeSets index attributes
indexAttributes - The index attributesGroovy Documentation