| package eu.mulk.mulkcms2.entity; |
| |
| import io.quarkus.hibernate.orm.panache.PanacheEntityBase; |
| import java.util.Objects; |
| import javax.persistence.Basic; |
| import javax.persistence.Column; |
| import javax.persistence.Entity; |
| import javax.persistence.Id; |
| import javax.persistence.Table; |
| |
| @Entity |
| @Table(name = "journal_category", schema = "public", catalog = "mulkcms") |
| public class LegacyJournalCategory extends PanacheEntityBase { |
| |
| private int id; |
| private String uuid; |
| |
| @Id |
| @Column(name = "id", nullable = false) |
| public int getId() { |
| return id; |
| } |
| |
| public void setId(int id) { |
| this.id = id; |
| } |
| |
| @Basic |
| @Column(name = "uuid", nullable = false, length = 36) |
| public String getUuid() { |
| return uuid; |
| } |
| |
| public void setUuid(String uuid) { |
| this.uuid = uuid; |
| } |
| |
| @Override |
| public boolean equals(Object o) { |
| if (this == o) { |
| return true; |
| } |
| if (o == null || getClass() != o.getClass()) { |
| return false; |
| } |
| LegacyJournalCategory that = (LegacyJournalCategory) o; |
| return id == that.id && |
| Objects.equals(uuid, that.uuid); |
| } |
| |
| @Override |
| public int hashCode() { |
| return Objects.hash(id, uuid); |
| } |
| } |