Package ejava.examples.orm.rel
Class OneToManyJoinTableTest
- java.lang.Object
-
- ejava.examples.orm.rel.DemoBase
-
- ejava.examples.orm.rel.OneToManyJoinTableTest
-
public class OneToManyJoinTableTest extends DemoBase
This test case provides a demo of a OneToMany relationship using a Join (or Link) table. In this relationship, the foreign keys are in a table separate from the two related items.
-
-
Constructor Summary
Constructors Constructor Description OneToManyJoinTableTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
findMedia(Collection<ejava.examples.orm.rel.annotated.Media> media, boolean exist)
void
testOneToManyJoinCreate()
void
testOneToManyJoinFind()
void
testOneToManyJoinRemove()
-
Methods inherited from class ejava.examples.orm.rel.DemoBase
postcleanup, precleanup, setUpBase, setUpDownShared, tearDownBase, tearDownBaseClass
-
-
-
-
Method Detail
-
testOneToManyJoinCreate
public void testOneToManyJoinCreate()
-
testOneToManyJoinFind
public void testOneToManyJoinFind()
-
testOneToManyJoinRemove
public void testOneToManyJoinRemove()
-
findMedia
private void findMedia(Collection<ejava.examples.orm.rel.annotated.Media> media, boolean exist)
-
-