1 package de.dlr.shepard.neo4Core.entities;
2
3 import lombok.Data;
4 import lombok.EqualsAndHashCode;
5 import lombok.NoArgsConstructor;
6 import lombok.ToString;
7 import org.neo4j.ogm.annotation.Index;
8 import org.neo4j.ogm.annotation.NodeEntity;
9
10 @NodeEntity
11 @Data
12 @ToString(callSuper = true)
13 @EqualsAndHashCode(callSuper = true)
14 @NoArgsConstructor
15 public class VersionableEntity extends BasicEntity {
16
17 @Index
18 private Long shepardId;
19
20
21
22
23
24
25 protected VersionableEntity(long id) {
26 super(id);
27 }
28
29 @Override
30 public long getNumericId() {
31 return getShepardId();
32 }
33 }