mirror of https://github.com/apache/openjpa.git
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:
parent
2c65619be4
commit
dc95a8a2e6
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue