gdamour 2005/08/19 23:49:06
Modified: modules/itests maven.xml
Log:
o GERONIMO-675 CMR / CMP Fields should not be read-only
Some additional enhancement to support the scenario where a primary key column
is also a foreign key column.
This basically implements the rules that Jeremy was recommending to apply
in such a case:
when the primary key is set in the ejbCreate<Method> the associated CMR field,
i.e. the CMR mapped to the foreign key column, is marked as under
construction.
From this point, the CMR must be set before the commit of the current
transaction. If not set, then the transaction is marked as rolled back.
Also, if an attempt is made to reset the pk field by relating the entity to
the wrong entity, an IllegalStateException is thrown.
o Also sync the code with the refactoring of the Association and
AssociationEnd
classes: the Association.isOneToOne, isOneToMany, isManyToOne and
isManyToMany methods have been moved to AssociationEnd.
Revision Changes Path
1.29 +32 -1 openejb/modules/itests/maven.xml
Index: maven.xml
===================================================================
RCS file: /home/projects/openejb/scm/openejb/modules/itests/maven.xml,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- maven.xml 29 Jul 2005 22:29:44 -0000 1.28
+++ maven.xml 20 Aug 2005 03:49:06 -0000 1.29
@@ -172,6 +172,26 @@
username="system"
password="manager"
id="org/openejb/cmp2/Prefetch"/>
+
+ <!-- CMR Mapping Tests -->
+ <ant:jar destfile="${basedir}/target/openejb-cmp2-cmrmapping.jar">
+ <fileset dir="${basedir}/target/classes">
+ <include name="**/cmp2/cmrmapping/*.class"/>
+ <include name="**/TestFailureException.class"/>
+ </fileset>
+ <metainf dir="${basedir}/src/cmp2/cmrmapping" includes="*.xml"/>
+ </ant:jar>
+ <deploy:distribute
+
uri="deployer:geronimo:jmx:rmi://localhost/jndi/rmi:/JMXConnector"
+ username="system"
+ password="manager"
+ module="${basedir}/target/openejb-cmp2-cmrmapping.jar"
+ />
+ <deploy:start
+
uri="deployer:geronimo:jmx:rmi://localhost/jndi/rmi:/JMXConnector"
+ username="system"
+ password="manager"
+ id="org/openejb/cmp2/CMRMapping"/>
<!-- PK Generator Tests -->
<ant:jar destfile="${basedir}/target/openejb-cmp2-petstore.jar">
@@ -214,6 +234,17 @@
</preGoal>
<preGoal name="itest:teardown">
+ <deploy:stop
+
uri="deployer:geronimo:jmx:rmi://localhost/jndi/rmi:/JMXConnector"
+ username="system"
+ password="manager"
+ id="org/openejb/cmp2/CMRMapping"/>
+ <deploy:undeploy
+
uri="deployer:geronimo:jmx:rmi://localhost/jndi/rmi:/JMXConnector"
+ username="system"
+ password="manager"
+ id="org/openejb/cmp2/CMRMapping"/>
+
<deploy:stop
uri="deployer:geronimo:jmx:rmi://localhost/jndi/rmi:/JMXConnector"
username="system"