Matthias Andreas Benkard | 2f0b370 | 2020-01-12 15:46:34 +0100 | [diff] [blame^] | 1 | package eu.mulk.entity; |
| 2 | |
| 3 | import java.io.Serializable; |
| 4 | import java.util.Objects; |
| 5 | import javax.persistence.Column; |
| 6 | import javax.persistence.Id; |
| 7 | |
| 8 | public class ArticleBranchTipPK implements Serializable { |
| 9 | |
| 10 | private int articleId; |
| 11 | private int revisionId; |
| 12 | |
| 13 | @Id |
| 14 | @Column(name = "article", nullable = false) |
| 15 | public int getArticleId() { |
| 16 | return articleId; |
| 17 | } |
| 18 | |
| 19 | @Id |
| 20 | @Column(name = "revision", nullable = false) |
| 21 | public int getRevisionId() { |
| 22 | return revisionId; |
| 23 | } |
| 24 | |
| 25 | public void setArticleId(int articleId) { |
| 26 | this.articleId = articleId; |
| 27 | } |
| 28 | |
| 29 | public void setRevisionId(int revisionId) { |
| 30 | this.revisionId = revisionId; |
| 31 | } |
| 32 | } |