1 | public class BidirectionalOneToManySetCollectionEventTest extends AbstractAssociationCollectionEventTest {↵ | | 1 | public class UnidirectionalManyToManyBagCollectionEventTest extends AbstractAssociationCollectionEventTest {↵
|
|
2 | public BidirectionalOneToManySetCollectionEventTest(String string) {↵ | | 2 | public UnidirectionalManyToManyBagCollectionEventTest(String string) {↵
|
3 | super( string );↵ | | 3 | super( string );↵
|
4 | }↵ | | 4 | }↵
|
|
5 | public static Test suite() {↵ | | 5 | public static Test suite() {↵
|
6 | return new FunctionalTestClassTestSuite( BidirectionalOneToManySetCollectionEventTest.class );↵ | | 6 | return new FunctionalTestClassTestSuite( UnidirectionalManyToManyBagCollectionEventTest.class );↵
|
7 | }↵ | | 7 | }↵
|
|
8 | public String[] getMappings() {↵ | | 8 | public String[] getMappings() {↵
|
9 | return new String[] { "event/collection/association/bidirectional/onetomany/BidirectionalOneToManySetMapping.hbm.xml" };↵ | | 9 | return new String[] { "event/collection/association/unidirectional/manytomany/UnidirectionalManyToManyBagMapping.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 HashSet();↵ | | 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 );↵
|
19 | | | 19 |
|