OPENJPA-2068: Update test Entities.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1233509 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Richard G. Curtis 2012-01-19 18:16:56 +00:00
parent 2c65619be4
commit dc95a8a2e6
2 changed files with 1 additions and 6 deletions

View File

@ -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<LrsEntityB> entitybs;
public LrsEntityA() {

View File

@ -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() {