| Matthias Andreas Benkard | 2f0b370 | 2020-01-12 15:46:34 +0100 | [diff] [blame^] | 1 | package eu.mulk.entity; | 
|  | 2 |  | 
|  | 3 | import io.quarkus.hibernate.orm.panache.PanacheEntityBase; | 
|  | 4 | import java.util.Objects; | 
|  | 5 | import javax.persistence.Column; | 
|  | 6 | import javax.persistence.Entity; | 
|  | 7 | import javax.persistence.Id; | 
|  | 8 | import javax.persistence.Table; | 
|  | 9 |  | 
|  | 10 | @Entity | 
|  | 11 | @Table(name = "used_transaction_keys", schema = "public", catalog = "mulkcms") | 
|  | 12 | public 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 | } |