Package ejava.examples.orm.rel
Class ManyToOneUnidirectionalTest
- java.lang.Object
-
- ejava.examples.orm.rel.DemoBase
-
- ejava.examples.orm.rel.ManyToOneUnidirectionalTest
-
public class ManyToOneUnidirectionalTest extends DemoBase
This test case provides a demonstration of a amny-to-one, uni-directional mapping.
-
-
Constructor Summary
Constructors Constructor Description ManyToOneUnidirectionalTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setUpBase()
void
testCreateManyToOne()
This version of MediaCopy uses a READ-ONLY foreign key mapping based on JPA 1.0void
testCreateManyToOneMapsId()
This version of the MediaCopy uses a JPA 2.0 @MapsId annotation to link the foreign and primary key properties.-
Methods inherited from class ejava.examples.orm.rel.DemoBase
postcleanup, precleanup, setUpDownShared, tearDownBase, tearDownBaseClass
-
-
-
-
Method Detail
-
setUpBase
public void setUpBase() throws Exception
-
testCreateManyToOne
public void testCreateManyToOne()
This version of MediaCopy uses a READ-ONLY foreign key mapping based on JPA 1.0
-
testCreateManyToOneMapsId
public void testCreateManyToOneMapsId()
This version of the MediaCopy uses a JPA 2.0 @MapsId annotation to link the foreign and primary key properties.
-
-