Skip to content

Commit 27679af

Browse files
GH-2294 - Add documentation.
1 parent f58a090 commit 27679af

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/main/asciidoc/object-mapping/mapping.adoc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,13 @@ See <<conversions>> for more information on that.
4646
* `@CreatedDate`: Applied at the field level to indicate the creation date of a node.
4747
* `@LastModifiedBy`: Applied at the field level to indicate the author of the last change to a node.
4848
* `@LastModifiedDate`: Applied at the field level to indicate the last modification date of a node.
49-
* `@PersistenceConstructor`: Applied at one constructor to mark it as a the preferred constructor when reading entities.
49+
* `@PersistenceConstructor`: Applied at one constructor to mark it as the preferred constructor when reading entities.
5050
* `@Persistent`: Applied at the class level to indicate this class is a candidate for mapping to the database.
51-
* `@Version`: Applied at field level is used for optimistic locking and checked for modification on save operations.
51+
* `@Version`: Applied at field level it is used for optimistic locking and checked for modification on save operations.
52+
* `@ReadOnlyProperty`: Applied at field level to mark a property as read only. The property will be hydrated during database reads,
53+
but not be subject to writes. When used on relationships be aware that no related entity in that collection will be persisted
54+
if not related otherwise.
55+
5256
The initial value is zero which is bumped automatically on every update.
5357

5458
Have a look at <<auditing>> for all annotations regarding auditing support.

0 commit comments

Comments
 (0)