Add an element to a empty relation.
Same as tCohSetOneA2B except that we add the element in the collection
instead of we set directly the collection.
Before: as0 bs0
After: as0 <-> bs0
Check also the assignement rules for relationships.
tCohAddOneInMultiA2B
public void tCohAddOneInMultiA2B(int tx) throws Exception(Code)
Add an element to a relation A2B already multiple.
The element was already in a relation.
Check also the assignement rules for relationships.
Before: a1 <-> b1_1
<-> b1_2
<-> b1_3
a3 <-> b3_1
Change: a1.addInB(b3_1)
After: a1 <-> b1_1
<-> b1_2
<-> b1_3
<-> b3_1
a3
See Spec chapter 10.3.7.3, change example: a1.getB().add(b2m)
Remove a bean B which is in a relation.
Same as tCohRemoveB except that the called remove method is on the bean
instead of the home.
Before: a3 <-> b3_1
change: B.remove(b3_1)
After: a3
Remove a bean B which is in a relation.
Before: a3 <-> b3_1
change: B.remove(b3_1)
After: a3
tCohRemoveInRelA2B
public void tCohRemoveInRelA2B(int tx) throws Exception(Code)
Remove an element in a relation.
Before: a3 <-> b3_1
Change: a3.retrieveB().remove(b3_1)
After: a3 b3_1
See Spec chapter 10.3.7.3, change example: a1.getB().remove(b1n)
Set a null B2A relation with 1 element.
This element was'nt already in an other relation.
Before: b0 as0
After: b0 <-> as0
Check also the assignement rules for relationships.
Set a B2A relation with 1 element.
This element wasn't already in an other relation.
Before: bs1_1 <-> as1
as0
Change: bs1_1.assignA(as0);
After: bs1_1 <-> as0
as1
Check also the assignement rules for relationships.
Set a B2A relation with 1 element.
This element was already in an other relation.
Before: bs1_1 <-> as1
b3_1 <-> a3
Change: bs1_1.assignA(b3_1.retrieveA())
After: bs1_1 <-> a3
b3_1 <->
as1
Check also the assignement rules for relationships.
See Spec chapter 10.3.7.3, change example: b2m.setA(b1n.getA())
Set a empty relation A2B with 1 element.
This added element was already in a other relation.
Before: a0
a3 <-> b3_1
Change: a0.assignB({b3_1})
After: a0 <-> b3_1
a3
Set an empty A2B relation with 1 element.
This added element was'nt already in an other relation.
Before: as0 b0
After: as0 <-> b0
Check also the assignement rules for relationships.
testBasicGetEmptyA2BTxCall
public void testBasicGetEmptyA2BTxCall() throws Exception(Code)
testBasicGetEmptyA2BTxCont
public void testBasicGetEmptyA2BTxCont() throws Exception(Code)
testBasicGetEmptyA2BTxNo
public void testBasicGetEmptyA2BTxNo() throws Exception(Code)
testBasicGetEmptyB2ANoTx
public void testBasicGetEmptyB2ANoTx() throws Exception(Code)
testBasicGetEmptyB2ATxCall
public void testBasicGetEmptyB2ATxCall() throws Exception(Code)
testBasicGetEmptyB2ATxCont
public void testBasicGetEmptyB2ATxCont() throws Exception(Code)
Fields inherited from org.objectweb.jonas.jtests.clients.entity.A_Cmp2Util