From dc95a8a2e640b2b743c975372c5426894b6e0d24 Mon Sep 17 00:00:00 2001 From: "Richard G. Curtis" Date: Thu, 19 Jan 2012 18:16:56 +0000 Subject: [PATCH] OPENJPA-2068: Update test Entities. git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1233509 13f79535-47bb-0310-9956-ffa450edef68 --- .../openjpa/persistence/relations/entity/LrsEntityA.java | 4 +--- .../openjpa/persistence/relations/entity/LrsEntityB.java | 3 --- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/entity/LrsEntityA.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/entity/LrsEntityA.java index f267a2f69..33442780d 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/entity/LrsEntityA.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/entity/LrsEntityA.java @@ -43,7 +43,6 @@ public class LrsEntityA implements Serializable { private static final long serialVersionUID = 1L; @Id - @Index(name = "lrsa_index", unique = true) @GeneratedValue(strategy=GenerationType.AUTO) Integer id; @@ -52,9 +51,8 @@ public class LrsEntityA implements Serializable { @Basic(fetch = FetchType.LAZY) int age; - @OneToMany(mappedBy = "entitya", cascade = CascadeType.ALL) - // if fk creates table need cascadeRemove on inverse @LRS + @OneToMany(mappedBy = "entitya", cascade = CascadeType.ALL) public Collection entitybs; public LrsEntityA() { diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/entity/LrsEntityB.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/entity/LrsEntityB.java index 294153cb8..23fc02c84 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/entity/LrsEntityB.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/entity/LrsEntityB.java @@ -38,7 +38,6 @@ public class LrsEntityB implements Serializable { private static final long serialVersionUID = 1L; @Id - @Index(name = "lrsb_index", unique = true) @GeneratedValue(strategy=GenerationType.AUTO) Integer id; @@ -46,8 +45,6 @@ public class LrsEntityB implements Serializable { String name; @ManyToOne() - @ForeignKey(deleteAction = ForeignKeyAction.NULL) - // needed for native dropandcreatetest LrsEntityA entitya; public LrsEntityB() {