blob: 8e69a4c5e8923ae926627298c621bb3f776316bb [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.util.Objects;
5import javax.persistence.Column;
6import javax.persistence.Entity;
7import javax.persistence.Id;
8import javax.persistence.Table;
9
10@Entity
11@Table(name = "used_transaction_keys", schema = "public", catalog = "mulkcms")
12public class UsedTransactionKey extends PanacheEntityBase {
13
14 private long key;
15
16 @Id
17 @Column(name = "key", nullable = false)
18 public long getKey() {
19 return key;
20 }
21
22 public void setKey(long key) {
23 this.key = key;
24 }
25
26 @Override
27 public boolean equals(Object o) {
28 if (this == o) {
29 return true;
30 }
31 if (o == null || getClass() != o.getClass()) {
32 return false;
33 }
34 UsedTransactionKey that = (UsedTransactionKey) o;
35 return key == that.key;
36 }
37
38 @Override
39 public int hashCode() {
40 return Objects.hash(key);
41 }
42}