1 | public class BidirectionalOneToManyBagCollectionEventTest extends AbstractAssociationCollectionEventTest {↵ | | 1 | public class UnidirectionalOneToManyBagCollectionEventTest extends AbstractAssociationCollectionEventTest {↵
|
|
2 | public BidirectionalOneToManyBagCollectionEventTest(String string) {↵ | | 2 | public UnidirectionalOneToManyBagCollectionEventTest(String string) {↵
|
3 | super( string );↵ | | 3 | super( string );↵
|
4 | }↵ | | 4 | }↵
|
|
5 | public static Test suite() {↵ | | 5 | public static Test suite() {↵
|
6 | return new FunctionalTestClassTestSuite( BidirectionalOneToManyBagCollectionEventTest.class );↵ | | 6 | return new FunctionalTestClassTestSuite( UnidirectionalOneToManyBagCollectionEventTest.class );↵
|
7 | }↵ | | 7 | }↵
|
|
8 | public String[] getMappings() {↵ | | 8 | public String[] getMappings() {↵
|
9 | return new String[] { "event/collection/association/bidirectional/onetomany/BidirectionalOneToManyBagMapping.hbm.xml" };↵ | | 9 | return new String[] { "event/collection/association/unidirectional/onetomany/UnidirectionalOneToManyBagMapping.hbm.xml" };↵
|
10 | }↵ | | 10 | }↵
|
|
11 | public ParentWithCollection createParent(String name) {↵ | | 11 | public ParentWithCollection createParent(String name) {↵
|
12 | return new ParentWithBidirectionalOneToMany( name );↵ | | 12 | return new ParentWithCollectionOfEntities( name );↵
|
13 | }↵ | | 13 | }↵
|
|
14 | public Collection createCollection() {↵ | | 14 | public Collection createCollection() {↵
|
15 | return new ArrayList();↵ | | 15 | return new ArrayList();↵
|
16 | }↵ | | 16 | }↵
|
|
17 | public Child createChild(String name) {↵ | | 17 | public Child createChild(String name) {↵
|
18 | return new ChildWithManyToOne( name ) | | 18 | return new ChildEntity( name )
|