You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|@Document| class | marks this class as a candidate for mapping|
144
-
|@Edge| class | marks this class as a candidate for mapping|
145
-
|@Id| field | stores the field as the system field \_key|
146
-
|@ArangoId| field | stores the field as the system field \_id|
147
-
|@Rev| field | stores the field as the system field \_rev|
148
-
|@Field("alt-name") | field | stores the field with an alternative name|
149
-
|@Ref| field | stores the \_id of the referenced document and not the nested document|
150
-
|@From| field | stores the \_id of the referenced document as the system field \_from|
151
-
|@To| field | stores the \_id of the referenced document as the system field \_to|
152
-
|@Relations| field | vertices which are connected over edges|
153
-
|@Transient| field, method, annotation | marks a field to be transient for the mapping framework, thus the property is not persisted and not further inspected by the mapping framework |
154
-
|@PersistenceConstructor| constructor | marks a given constructor - even a package protected one - to use when instantiating the object from the database|
155
-
|@TypeAlias("alias") | class | set a type alias for the class when persisted to the DB|
156
-
|@ComputedValueEntry| class | describes a computed value data definition|
157
-
|@ComputedValueField| field | marks the field for the mapping framework so that the property is updated with the value coming from the server and optionally describes a computed value data definition |
158
-
|@PersistentIndex| class | describes a persistent index|
159
-
|@PersistentIndexed| field | describes how to index the field|
160
-
|@GeoIndex| class | describes a geo index|
161
-
|@GeoIndexed| field | describes how to index the field|
162
-
|@FulltextIndex| class | describes a fulltext index|
163
-
|@FulltextIndexed| field | describes how to index the field|
164
-
|@TtlIndex| class | describes a TTL index|
165
-
|@TtlIndexed| field | describes how to index the field|
166
-
|@CreatedBy| field | Declares a field as the one representing the principal that created the entity containing the field.|
167
-
|@CreatedDate| field | Declares a field as the one representing the date the entity containing the field was created.|
168
-
|@LastModifiedBy| field | Declares a field as the one representing the principal that recently modified the entity containing the field.|
169
-
|@LastModifiedDate| field | Declares a field as the one representing the date the entity containing the field was recently modified.|
|@Document| class | marks this class as a candidate for mapping |
144
+
|@Edge| class | marks this class as a candidate for mapping |
145
+
|@Id| field | stores the field as the system field \_key |
146
+
|@ArangoId| field | stores the field as the system field \_id |
147
+
|@Rev| field | stores the field as the system field \_rev |
148
+
|@Field("alt-name") | field | stores the field with an alternative name |
149
+
|@Ref| field | stores the \_id of the referenced document and not the nested document |
150
+
|@From| field | stores the \_id of the referenced document as the system field \_from |
151
+
|@To| field | stores the \_id of the referenced document as the system field \_to |
152
+
|@Relations| field | vertices which are connected over edges |
153
+
| @Transient| field, method, annotation | marks a field to be transient for the mapping framework, thus the property is not persisted and not further inspected by the mapping framework |
154
+
|@PersistenceConstructor| constructor | marks a given constructor - even a package protected one - to use when instantiating the object from the database |
155
+
|@TypeAlias("alias") | class | set a type alias for the class when persisted to the DB |
156
+
|@ArangoComputedValueDefinition| class | describes a computed value data definition |
157
+
|@ArangoComputedValue| field | marks the field for the mapping framework so that the property is updated with the value coming from the server and optionally describes a computed value data definition |
158
+
|@PersistentIndex| class | describes a persistent index |
159
+
|@PersistentIndexed| field | describes how to index the field |
160
+
|@GeoIndex| class | describes a geo index |
161
+
|@GeoIndexed| field | describes how to index the field |
162
+
|@FulltextIndex| class | describes a fulltext index |
163
+
|@FulltextIndexed| field | describes how to index the field |
164
+
|@TtlIndex| class | describes a TTL index |
165
+
|@TtlIndexed| field | describes how to index the field |
166
+
|@CreatedBy| field | Declares a field as the one representing the principal that created the entity containing the field. |
167
+
|@CreatedDate| field | Declares a field as the one representing the date the entity containing the field was created. |
168
+
|@LastModifiedBy| field | Declares a field as the one representing the principal that recently modified the entity containing the field. |
169
+
|@LastModifiedDate| field | Declares a field as the one representing the date the entity containing the field was recently modified. |
Copy file name to clipboardExpand all lines: site/content/3.10/develop/integrations/spring-data-arangodb/reference-version-4/mapping/computed-values.md
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -9,13 +9,13 @@ Spring Data ArangoDB provides annotations to allow mapping computed values to
9
9
entity properties and to include computed values data definitions during
10
10
collection creation.
11
11
12
-
For reference, see the [indexing](../../../../../concepts/data-structure/documents/computed-values.md)
12
+
For reference, see the [computed values](../../../../../concepts/data-structure/documents/computed-values.md)
13
13
documentation.
14
14
15
15
## Mapping
16
16
17
17
Computed values can be mapped to entity properties by annotating the related
18
-
fields with `@ComputedValueField`.
18
+
fields with `@ArangoComputedValue`.
19
19
20
20
If the property is mutable, then the field is automatically updated in place
21
21
with the value coming from the server in the following methods:
@@ -28,24 +28,24 @@ with the value coming from the server in the following methods:
28
28
29
29
Computed values data definitions can be specified through parameters of the
30
30
following annotations:
31
-
-`@ComputedValueField` on fields
32
-
-`@ComputedValueEntry` on classes (optionally within `@ComputedValues`)
31
+
-`@ArangoComputedValue` on fields
32
+
-`@ArangoComputedValueDefinition` on classes (optionally within `@ArangoComputedValueDefinitions`)
33
33
34
34
**Example**
35
35
36
36
```java
37
37
@Document
38
-
@ComputedValueEntry(
38
+
@ArangoComputedValueDefinition(
39
39
name="username",
40
40
expression="RETURN \"unknown\"",
41
41
computeOn=ComputedValue.ComputeOn.insert
42
42
)
43
43
classMyEntity {
44
44
45
-
@ComputedValueField
45
+
@ArangoComputedValue
46
46
String username;
47
47
48
-
@ComputedValueField("RETURN 0")
48
+
@ArangoComputedValue("RETURN 0")
49
49
int age;
50
50
51
51
// ...
@@ -54,5 +54,5 @@ class MyEntity {
54
54
```
55
55
56
56
On database collection creation, the computed values metadata is included.
57
-
Note that the data definitions is not updated in case the database collection
57
+
Note that the data definitions are not updated in case the database collection
0 commit comments