Allow to use GWTORM Key classes in plugins
To implement dedicated databases in plugin based on GWTORM, keys are needed. Currently they can only be used from classes located in the same package. Changing the modifiers to public allow the plugin to reuse them, without keep using the same package name as in Gerrit core. Change-Id: I5f321aa89dbb9b71945c4bc53151e3d5a26cce74
This commit is contained in:
committed by
David Pursehouse
parent
4a3b5baec2
commit
13b4b5082d
@@ -106,7 +106,7 @@ public final class Change {
|
|||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@Column(id = 1)
|
@Column(id = 1)
|
||||||
protected int id;
|
public int id;
|
||||||
|
|
||||||
protected Id() {
|
protected Id() {
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,9 +23,9 @@ public class LabelId extends StringKey<com.google.gwtorm.client.Key<?>> {
|
|||||||
public static final LabelId SUBMIT = new LabelId("SUBM");
|
public static final LabelId SUBMIT = new LabelId("SUBM");
|
||||||
|
|
||||||
@Column(id = 1)
|
@Column(id = 1)
|
||||||
protected String id;
|
public String id;
|
||||||
|
|
||||||
protected LabelId() {
|
public LabelId() {
|
||||||
}
|
}
|
||||||
|
|
||||||
public LabelId(final String n) {
|
public LabelId(final String n) {
|
||||||
|
|||||||
@@ -32,12 +32,12 @@ public final class PatchSet {
|
|||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@Column(id = 1)
|
@Column(id = 1)
|
||||||
protected Change.Id changeId;
|
public Change.Id changeId;
|
||||||
|
|
||||||
@Column(id = 2)
|
@Column(id = 2)
|
||||||
protected int patchSetId;
|
public int patchSetId;
|
||||||
|
|
||||||
protected Id() {
|
public Id() {
|
||||||
changeId = new Change.Id();
|
changeId = new Change.Id();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user