From c8c43e40654365d68bebfa27b3d8d4e648dca869 Mon Sep 17 00:00:00 2001 From: Pinaki Poddar Date: Thu, 12 Mar 2009 16:50:21 +0000 Subject: [PATCH] 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 --- .../persistence/kernel/common/apps/AppIdClassString.java | 4 ++++ .../openjpa/persistence/kernel/common/apps/DateVersion.java | 4 ++++ .../openjpa/persistence/kernel/common/apps/RuntimeTest4.java | 4 ++++ .../openjpa/persistence/kernel/common/apps/RuntimeTest5.java | 4 ++++ .../persistence/kernel/common/apps/SequenceAssigned2.java | 4 ++++ 5 files changed, 20 insertions(+) diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/kernel/common/apps/AppIdClassString.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/kernel/common/apps/AppIdClassString.java index 8fa4b71c0..29210935b 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/kernel/common/apps/AppIdClassString.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/kernel/common/apps/AppIdClassString.java @@ -33,6 +33,10 @@ public class AppIdClassString { @Id private int pk; + protected AppIdClassString() { + this(1); + } + public AppIdClassString(int pk) { this.pk = pk; } diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/kernel/common/apps/DateVersion.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/kernel/common/apps/DateVersion.java index 3b07331aa..610db6f05 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/kernel/common/apps/DateVersion.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/kernel/common/apps/DateVersion.java @@ -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; diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/kernel/common/apps/RuntimeTest4.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/kernel/common/apps/RuntimeTest4.java index b3d1dae0a..b8f478dd4 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/kernel/common/apps/RuntimeTest4.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/kernel/common/apps/RuntimeTest4.java @@ -32,6 +32,10 @@ public class RuntimeTest4 { @OneToMany(cascade = { CascadeType.PERSIST, CascadeType.REMOVE }) private Collection runtimeTest5s = new ArrayList(); + protected RuntimeTest4() { + this("?"); + } + public RuntimeTest4(String str) { name = str; } diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/kernel/common/apps/RuntimeTest5.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/kernel/common/apps/RuntimeTest5.java index 8ebb73fa6..55d9d615c 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/kernel/common/apps/RuntimeTest5.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/kernel/common/apps/RuntimeTest5.java @@ -26,6 +26,10 @@ public class RuntimeTest5 { private String name; private RuntimeTest4 runtimeTest4; + protected RuntimeTest5() { + this("?"); + } + public RuntimeTest5(String str) { name = str; } diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/kernel/common/apps/SequenceAssigned2.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/kernel/common/apps/SequenceAssigned2.java index 1e5368101..3b53786a7 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/kernel/common/apps/SequenceAssigned2.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/kernel/common/apps/SequenceAssigned2.java @@ -27,6 +27,10 @@ public class SequenceAssigned2 extends SequenceAssigned { private int foo; + public SequenceAssigned2() { + this(1); + } + public SequenceAssigned2(long pk) { super(pk); }