mirror of https://github.com/apache/openjpa.git
Add no-args constructor such that runtime enhancer can use
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@752930 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c5a3a56b48
commit
c8c43e4065
|
@ -33,6 +33,10 @@ public class AppIdClassString {
|
||||||
@Id
|
@Id
|
||||||
private int pk;
|
private int pk;
|
||||||
|
|
||||||
|
protected AppIdClassString() {
|
||||||
|
this(1);
|
||||||
|
}
|
||||||
|
|
||||||
public AppIdClassString(int pk) {
|
public AppIdClassString(int pk) {
|
||||||
this.pk = pk;
|
this.pk = pk;
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,6 +33,10 @@ public class DateVersion {
|
||||||
@Id
|
@Id
|
||||||
private int id;
|
private int id;
|
||||||
|
|
||||||
|
protected DateVersion() {
|
||||||
|
this("?", 1);
|
||||||
|
}
|
||||||
|
|
||||||
public DateVersion(String s, int id) {
|
public DateVersion(String s, int id) {
|
||||||
string = s;
|
string = s;
|
||||||
this.id = id;
|
this.id = id;
|
||||||
|
|
|
@ -32,6 +32,10 @@ public class RuntimeTest4 {
|
||||||
@OneToMany(cascade = { CascadeType.PERSIST, CascadeType.REMOVE })
|
@OneToMany(cascade = { CascadeType.PERSIST, CascadeType.REMOVE })
|
||||||
private Collection<RuntimeTest5> runtimeTest5s = new ArrayList();
|
private Collection<RuntimeTest5> runtimeTest5s = new ArrayList();
|
||||||
|
|
||||||
|
protected RuntimeTest4() {
|
||||||
|
this("?");
|
||||||
|
}
|
||||||
|
|
||||||
public RuntimeTest4(String str) {
|
public RuntimeTest4(String str) {
|
||||||
name = str;
|
name = str;
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,6 +26,10 @@ public class RuntimeTest5 {
|
||||||
private String name;
|
private String name;
|
||||||
private RuntimeTest4 runtimeTest4;
|
private RuntimeTest4 runtimeTest4;
|
||||||
|
|
||||||
|
protected RuntimeTest5() {
|
||||||
|
this("?");
|
||||||
|
}
|
||||||
|
|
||||||
public RuntimeTest5(String str) {
|
public RuntimeTest5(String str) {
|
||||||
name = str;
|
name = str;
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,6 +27,10 @@ public class SequenceAssigned2 extends SequenceAssigned {
|
||||||
|
|
||||||
private int foo;
|
private int foo;
|
||||||
|
|
||||||
|
public SequenceAssigned2() {
|
||||||
|
this(1);
|
||||||
|
}
|
||||||
|
|
||||||
public SequenceAssigned2(long pk) {
|
public SequenceAssigned2(long pk) {
|
||||||
super(pk);
|
super(pk);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue