| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- package fr.jaquin.bdlg.planner.persistence;
- import java.time.LocalDateTime;
- import java.util.Objects;
- import javax.persistence.Entity;
- import javax.persistence.Id;
- import javax.persistence.ManyToOne;
- @Entity
- public class Evenement {
- @Id
- private Long id;
- private String uuid;
- private String name;
- private LocalDateTime lastModified;
- @ManyToOne
- private CustomUser lastEditor;
- public Long getId() {
- return this.id;
- }
- public void setId(Long id) {
- this.id = id;
- }
- public String getUuid() {
- return this.uuid;
- }
- public void setUuid(String uuid) {
- this.uuid = uuid;
- }
- public String getName() {
- return this.name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public LocalDateTime getLastModified() {
- return this.lastModified;
- }
- public void setLastModified(LocalDateTime lastModified) {
- this.lastModified = lastModified;
- }
- public CustomUser getLastEditor() {
- return this.lastEditor;
- }
- public void setLastEditor(CustomUser lastEditor) {
- this.lastEditor = lastEditor;
- }
- @Override
- public boolean equals(Object o) {
- if (o == this)
- return true;
- if (!(o instanceof Evenement)) {
- return false;
- }
- Evenement evenement = (Evenement) o;
- return id == evenement.id;
- }
- @Override
- public int hashCode() {
- return Objects.hash(id, uuid);
- }
- }
|