Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @NodeEntity
- public class Audit {
- @Transient // << note transient - not saved in DB.
- private static Long audit_count = 0L;
- @Transient
- private static final Logger log = LoggerFactory.getLogger(Audit.class);
- @Id @GeneratedValue Long id;
- @Property
- private Instant date;
- public Instant getDate() {return date;}
- @Property
- private Long user_id;
- public Long getUserId() {return user_id;}
- @Property
- private ChangeType type;
- public ChangeType getType() {return type;}
- @Property
- private String comment;
- public String getComment() {return comment;}
- @Property
- private String original_value;
- public String getOriginalValue() {return original_value;}
- @Property
- private String new_value;
- public String getNewValue() {return new_value;}
- @Property
- // a number guaranteed to be in order of audit creation, used implicitly in pageable audit query
- private Long seq;
- public Long getSeq() {return seq;}
- @Relationship("AUDIT")
- BoardPosition ref;
- // Implementation...
- }
- @Data
- @NodeEntity
- public class AppInfo {
- @Transient
- private static final Logger log = LoggerFactory.getLogger(AppInfo.class);
- @Id @GeneratedValue Long id;
- public Long getId() {return id;}
- @Property
- private Integer schema_id;
- // Implementation...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement