Advertisement
Guest User

Untitled

a guest
Jul 11th, 2019
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. @NodeEntity
  2. public class Audit {
  3.  
  4. @Transient // << note transient - not saved in DB.
  5. private static Long audit_count = 0L;
  6.  
  7. @Transient
  8. private static final Logger log = LoggerFactory.getLogger(Audit.class);
  9.  
  10. @Id @GeneratedValue Long id;
  11.  
  12. @Property
  13. private Instant date;
  14. public Instant getDate() {return date;}
  15.  
  16. @Property
  17. private Long user_id;
  18. public Long getUserId() {return user_id;}
  19.  
  20. @Property
  21. private ChangeType type;
  22. public ChangeType getType() {return type;}
  23.  
  24. @Property
  25. private String comment;
  26. public String getComment() {return comment;}
  27.  
  28. @Property
  29. private String original_value;
  30. public String getOriginalValue() {return original_value;}
  31.  
  32. @Property
  33. private String new_value;
  34. public String getNewValue() {return new_value;}
  35.  
  36. @Property
  37. // a number guaranteed to be in order of audit creation, used implicitly in pageable audit query
  38. private Long seq;
  39. public Long getSeq() {return seq;}
  40.  
  41. @Relationship("AUDIT")
  42. BoardPosition ref;
  43. // Implementation...
  44. }
  45.  
  46. @Data
  47. @NodeEntity
  48. public class AppInfo {
  49.  
  50. @Transient
  51. private static final Logger log = LoggerFactory.getLogger(AppInfo.class);
  52.  
  53. @Id @GeneratedValue Long id;
  54. public Long getId() {return id;}
  55.  
  56. @Property
  57. private Integer schema_id;
  58.  
  59. // Implementation...
  60.  
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement