]> git.argeo.org Git - gpl/argeo-slc.git/blob - legacy/org.argeo.slc.support/src/org/argeo/slc/diff/DiffIssue.java
Adapt to changes in Argeo Commons
[gpl/argeo-slc.git] / legacy / org.argeo.slc.support / src / org / argeo / slc / diff / DiffIssue.java
1 package org.argeo.slc.diff;
2
3 /** The root class for issues which happened during a diff. */
4 public abstract class DiffIssue implements Comparable<DiffIssue> {
5 /** The position of this issue. */
6 // Was final and is not anymore in order to persist in hibernate
7 protected DiffPosition position;
8
9 // hibernate
10 private long id;
11
12 /** Constructor */
13 public DiffIssue(DiffPosition position) {
14 super();
15 this.position = position;
16 }
17
18 public int compareTo(DiffIssue o) {
19 return position.compareTo(o.position);
20 }
21
22 /** The position of this issue within the test file */
23 public DiffPosition getPosition() {
24 return position;
25 }
26
27 // Hibernate
28 @SuppressWarnings("unused")
29 private void setId(long id) {
30 this.id = id;
31 }
32
33 @SuppressWarnings("unused")
34 private long getId() {
35 return id;
36 }
37
38 @SuppressWarnings("unused")
39 private void setPosition(DiffPosition position) {
40 this.position = position;
41 }
42
43 }