mirror of https://github.com/apache/openjpa.git
OPENJPA-1024: clean up testcases
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@765716 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5239148763
commit
5681d06afe
|
@ -27,10 +27,12 @@ import javax.persistence.Column;
|
|||
import javax.persistence.Entity;
|
||||
import javax.persistence.FetchType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
|
||||
import javax.persistence.ElementCollection;
|
||||
|
||||
@Entity
|
||||
@Table(name="TBL1A")
|
||||
public class EntityA_Coll_Embed_Embed implements Serializable {
|
||||
@Id
|
||||
Integer id;
|
||||
|
|
|
@ -29,11 +29,13 @@ import javax.persistence.Column;
|
|||
import javax.persistence.Entity;
|
||||
import javax.persistence.FetchType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
|
||||
import javax.persistence.ElementCollection;
|
||||
import javax.persistence.CollectionTable;
|
||||
|
||||
@Entity
|
||||
@Table(name="TBL2A")
|
||||
public class EntityA_Coll_Embed_ToOne implements Serializable {
|
||||
// contains a collection of Embed1ToOne
|
||||
// Embed1ToOne does not have an element collection or to-Many relationships
|
||||
|
|
|
@ -30,8 +30,10 @@ import javax.persistence.Id;
|
|||
|
||||
import javax.persistence.ElementCollection;
|
||||
import javax.persistence.CollectionTable;
|
||||
import javax.persistence.Table;
|
||||
|
||||
@Entity
|
||||
@Table(name="TBL3A")
|
||||
public class EntityA_Coll_String implements Serializable {
|
||||
@Id
|
||||
Integer id;
|
||||
|
|
|
@ -27,8 +27,10 @@ import javax.persistence.Embedded;
|
|||
import javax.persistence.Entity;
|
||||
import javax.persistence.FetchType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
|
||||
@Entity
|
||||
@Table(name="TBL4A")
|
||||
public class EntityA_Embed_Coll_Embed implements Serializable {
|
||||
@Id
|
||||
Integer id;
|
||||
|
|
|
@ -25,8 +25,10 @@ import javax.persistence.Column;
|
|||
import javax.persistence.Entity;
|
||||
import javax.persistence.FetchType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
|
||||
@Entity
|
||||
@Table(name="TBL5A")
|
||||
public class EntityA_Embed_Coll_Integer implements Serializable {
|
||||
@Id
|
||||
Integer id;
|
||||
|
|
|
@ -25,8 +25,10 @@ import javax.persistence.Embedded;
|
|||
import javax.persistence.Entity;
|
||||
import javax.persistence.FetchType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
|
||||
@Entity
|
||||
@Table(name="TBL7A")
|
||||
public class EntityA_Embed_Embed implements Serializable {
|
||||
@Id
|
||||
Integer id;
|
||||
|
|
|
@ -26,8 +26,10 @@ import javax.persistence.Embedded;
|
|||
import javax.persistence.Entity;
|
||||
import javax.persistence.FetchType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
|
||||
@Entity
|
||||
@Table(name="TBL6A")
|
||||
public class EntityA_Embed_Embed_ToMany implements Serializable {
|
||||
@Id
|
||||
Integer id;
|
||||
|
|
|
@ -25,8 +25,10 @@ import javax.persistence.Embedded;
|
|||
import javax.persistence.Entity;
|
||||
import javax.persistence.FetchType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
|
||||
@Entity
|
||||
@Table(name="TBL8A")
|
||||
public class EntityA_Embed_MappedToOne implements Serializable {
|
||||
@Id
|
||||
Integer id;
|
||||
|
|
|
@ -26,8 +26,10 @@ import javax.persistence.Embedded;
|
|||
import javax.persistence.Entity;
|
||||
import javax.persistence.FetchType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
|
||||
@Entity
|
||||
@Table(name="TBL9A")
|
||||
public class EntityA_Embed_ToMany implements Serializable {
|
||||
@Id
|
||||
Integer id;
|
||||
|
|
|
@ -25,8 +25,10 @@ import javax.persistence.Embedded;
|
|||
import javax.persistence.Entity;
|
||||
import javax.persistence.FetchType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
|
||||
@Entity
|
||||
@Table(name="TB10A")
|
||||
public class EntityA_Embed_ToOne implements Serializable {
|
||||
@Id
|
||||
Integer id;
|
||||
|
|
|
@ -277,9 +277,6 @@ public class TestEmbeddable extends SingleEMFTestCase {
|
|||
a.setAge(id);
|
||||
for (int i = 0; i < numEmbeddables; i++) {
|
||||
Embed_ToOne embed = createEmbed_ToOne(em, i+id);
|
||||
EntityB1 b = new EntityB1();
|
||||
b.setId(id + i);
|
||||
b.setName("b" + id + i);
|
||||
a.addEmbed1ToOne(embed);
|
||||
}
|
||||
em.persist(a);
|
||||
|
|
Loading…
Reference in New Issue