blob: cc311b73082746e5ff01578809cd2febe15a0247 [file] [log] [blame]
Matthias Andreas Benkard2f0b3702020-01-12 15:46:34 +01001package eu.mulk.entity;
2
3import io.quarkus.hibernate.orm.panache.PanacheEntityBase;
4import java.sql.Timestamp;
5import java.util.Objects;
6import javax.persistence.Basic;
7import javax.persistence.Column;
8import javax.persistence.Entity;
9import javax.persistence.Id;
10import javax.persistence.Table;
11
12@Entity
13@Table(name = "article_publishing_dates", schema = "public", catalog = "mulkcms")
14public class ArticlePublishingDate extends PanacheEntityBase {
15
16 @Id
17 private Integer article;
18 private Timestamp publishingDate;
19
20 @Basic
21 @Column(name = "article", nullable = true)
22 public Integer getArticle() {
23 return article;
24 }
25
26 public void setArticle(Integer article) {
27 this.article = article;
28 }
29
30 @Basic
31 @Column(name = "publishing_date", nullable = true)
32 public Timestamp getPublishingDate() {
33 return publishingDate;
34 }
35
36 public void setPublishingDate(Timestamp publishingDate) {
37 this.publishingDate = publishingDate;
38 }
39
40 @Override
41 public boolean equals(Object o) {
42 if (this == o) {
43 return true;
44 }
45 if (o == null || getClass() != o.getClass()) {
46 return false;
47 }
48 ArticlePublishingDate that = (ArticlePublishingDate) o;
49 return Objects.equals(article, that.article) &&
50 Objects.equals(publishingDate, that.publishingDate);
51 }
52
53 @Override
54 public int hashCode() {
55 return Objects.hash(article, publishingDate);
56 }
57}