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
|
||||
private int pk;
|
||||
|
||||
protected AppIdClassString() {
|
||||
this(1);
|
||||
}
|
||||
|
||||
public AppIdClassString(int pk) {
|
||||
this.pk = pk;
|
||||
}
|
||||
|
|
|
@ -33,6 +33,10 @@ public class DateVersion {
|
|||
@Id
|
||||
private int id;
|
||||
|
||||
protected DateVersion() {
|
||||
this("?", 1);
|
||||
}
|
||||
|
||||
public DateVersion(String s, int id) {
|
||||
string = s;
|
||||
this.id = id;
|
||||
|
|
|
@ -32,6 +32,10 @@ public class RuntimeTest4 {
|
|||
@OneToMany(cascade = { CascadeType.PERSIST, CascadeType.REMOVE })
|
||||
private Collection<RuntimeTest5> runtimeTest5s = new ArrayList();
|
||||
|
||||
protected RuntimeTest4() {
|
||||
this("?");
|
||||
}
|
||||
|
||||
public RuntimeTest4(String str) {
|
||||
name = str;
|
||||
}
|
||||
|
|
|
@ -26,6 +26,10 @@ public class RuntimeTest5 {
|
|||
private String name;
|
||||
private RuntimeTest4 runtimeTest4;
|
||||
|
||||
protected RuntimeTest5() {
|
||||
this("?");
|
||||
}
|
||||
|
||||
public RuntimeTest5(String str) {
|
||||
name = str;
|
||||
}
|
||||
|
|
|
@ -27,6 +27,10 @@ public class SequenceAssigned2 extends SequenceAssigned {
|
|||
|
||||
private int foo;
|
||||
|
||||
public SequenceAssigned2() {
|
||||
this(1);
|
||||
}
|
||||
|
||||
public SequenceAssigned2(long pk) {
|
||||
super(pk);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue