| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- 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.OneToMany;
- @Entity
- public class Evenement {
- @Id
- private Long id;
- private String uuid;
- private String name;
- private LocalDateTime lastModified;
- @OneToMany
- private Users 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 Users getLastEditor() {
- return this.lastEditor;
- }
- public void setLastEditor(Users 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);
- }
- }
|