@Retention(value=RUNTIME) @Target(value=FIELD) public @interface Id
When using an @Id on a class attribute, this attribute will be considered as the key of the entity,
and saving to the database will trigger a merge on an existing entry with the same key if it exists.
The @Id annotated attribute can either be assigned manually by the user (default), or can be generated
by OGM (see @GeneratedValue
}.
This comes as a more explicit replacement to the old Index
(primary = true, unique = true) annotation.
Copyright © 2015–2020 Neo Technology, Inc.. All rights reserved.