From: Vance K. <va...@us...> - 2006-05-29 01:46:09
|
User: vancek Date: 06/05/28 18:46:08 Added: andromda-ejb3/src/changes changes.xml Log: added changes xml used for maven-changes-plugin Revision Changes Path 1.1 cartridges/andromda-ejb3/src/changes/changes.xml Index: changes.xml =================================================================== <document> <properties> <title>EJB3 Cartridge Plugin Project</title> <author email="va...@an...">Vance Karimi</author> </properties> <body> <release version="1.0-SNAPSHOT" date="2006-06-01" desc="Changes for 1.0-SNAPSHOT"> <action dev="vancek" type="add"> Introduced changes.xml and report. </action> <action dev="vancek" type="add"> Added manageable entity support. </action> <action dev="vancek" type="add"> Added JBoss cache support. </action> <action dev="vancek" type="update"> Set default discriminator value consisting of first character of entity name if one isn't explicitly specified. </action> <action dev="vancek" type="add"> Added DAO support for every entity POJO. </action> <action dev="vancek" type="update"> Refactored javax.ejb package for interceptor related annotations to javax.annotation. NOTE: These annotations are NOT used anyway since interceptor components are configured via XML descriptor. </action> <action dev="vancek" type="update"> Added Maven reporting facilities to site generation. Using new AndroMDA site skin for site generation. To run these reports, the following Maven report plugins need to be installed. Some may only exist on the Maven sandox. maven-site-plugin, maven-project-info-reports-plugin, maven-javadoc-plugin, maven-surefire-report-plugin, maven-jxr-plugin, maven-pmd-plugin, maven-checkstyle-plugin, maven-changes-plugin and maven-changelog-plugin. The maven-changelog-plugin will require you to have cvs.exe (if on windows platform) in your path. </action> <action dev="vancek" type="fix"> Many-to-Many association owning side JoinTable - JoinColumn name property fixed. JIRA EJB-25 </action> <action dev="vancek" type="fix"> NamedQuery definition to pick up firstResult and maxResult arguments modelled with these stereotypes and NOT include then in where clause. </action> </release> </body> </document> |
From: Vance K. <va...@us...> - 2006-05-29 06:39:05
|
User: vancek Date: 06/05/28 23:39:00 Modified: andromda-ejb3/src/site/xdoc howto.xml andromda-ejb3/src/changes changes.xml Added: andromda-ejb3/src/site/xdoc installation.xml Log: added installation howto Revision Changes Path 1.19 +12 -1 cartridges/andromda-ejb3/src/site/xdoc/howto.xml Index: howto.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/site/xdoc/howto.xml,v retrieving revision 1.18 retrieving revision 1.19 diff -u -w -r1.18 -r1.19 --- howto.xml 29 May 2006 01:53:36 -0000 1.18 +++ howto.xml 29 May 2006 06:39:00 -0000 1.19 @@ -25,6 +25,17 @@ <ul> <li> <p> + <a href="installation.html">Installation & Configuration</a> + <ul> + <li><p><a href="installation.html#Requirements">Requirements</a></p></li> + <li><p><a href="installation.html#Getting_the_Cartridge">Getting the Cartridge</a></p></li> + <li><p><a href="installation.html#Building_the_Cartridge">Building the Cartridge</a></p></li> + <li><p><a href="installation.html#Building_Reports">Building Reports</a></p></li> + </ul> + </p> + </li> + <li> + <p> <a href="howto1.html">Entities</a> <ul> <li><p><a href="howto1.html#Entity_Operations">Entity Operations</a></p></li> @@ -236,7 +247,7 @@ <a href="HowToModel.xmi">here</a>. </p> <p> - In order to start the tutorial click <a href="howto1.html">here</a>. + In order to start the tutorial click <a href="installation.html">here</a>. </p> </section> </body> 1.1 cartridges/andromda-ejb3/src/site/xdoc/installation.xml Index: installation.xml =================================================================== <?xml version="1.0" encoding="iso-8859-1"?> <document> <properties> <author email="va...@us...">Vance Karimi</author> <title>AndroMDA - EJB3 - Installation & Configuration</title> </properties> <body> <section name="Installation"> <p> Since the EJB3 cartridge is not part of the base AndroMDA package, you need to know a few things to get started with the cartridge. This installation and configuration guide should provide enough information to get you started. </p> <a name="Requirements"/> <subsection name="Requirements"> <p> You must have the latest Maven (currently 2.0.4) installed and configured. You can install Maven <a href="http://maven.apache.org/download.html#Installation">here</a>. </p> <p> You need to have an instance of AndroMDA 3.2. At the time of writing this, 3.2 RC1 was released. Alternatively, you can get the latest 3.2-SNAPSHOT from CVS and build it. </p> </subsection> <a name="Getting_the_Cartridge"/> <subsection name="Getting the Cartridge"> <p> The first thing you need to do is checkout the latest EJB3 cartridge from CVS. Follow the anonymous CVS access at <a href="http://sourceforge.net/cvs/?group_id=154568">andromdaplugins project</a> on SourceForge to checkout the latest <b>andromda-ejb</b> module. </p> </subsection> <a name="Building_the_Cartridge"/> <subsection name="Building the Cartridge"> <p> Once you have checked out the andromda-ejb3 cartridge, you can simply build it by going to the root folder of the project and running <i>mvn</i>. </p> </subsection> <a name="Building_Reports"/> <subsection name="Building Reports"> <p> To build the EJB3 cartridge site documentation requires a few extra Maven 2 plugins to be downloaded from the Maven 2 sandbox in SVN. The <a href="http://maven.apache.org/guides/development/guide-building-m2.html">Maven build</a> documentation will give you some information on how to access their SVN. </p> <p> You will need to check out the following plugins from Maven <b>sandbox</b>. <ul> <li><p>maven-changes-plugin</p></li> <li><p>maven-changelog-plugin</p></li> </ul> Once you have built them (mvn install), these plugins will reside in your local repo. </p> <p> In adopting the existing AndroMDA site format for the documentation, the Maven Doxia plugin needs a patch to be applied. You can check out <b>doxia-1.0-alpha-8</b> from Maven SVN and apply the patch <a href="http://jira.codehaus.org/browse/MNG-545">here</a>. It is not critical to apply this patch, but if it's not applied, the generated XHTML will not be formated correctly but still acceptable. </p> <p> All other require plugins will be downloaded to your local repo if they don't already exist. </p> <p> You can download the source examples used in the howto for all sections <a href="HowToModel-src.zip">here</a> and extract to the target/site folder of the andromda-ejb3 plugin. </p> </subsection> </section> <section name="Next"> <p> To start with EJB 3.0 entity POJOs click <a href="howto1.html">next</a>. </p> </section> </body> </document> 1.2 +3 -0 cartridges/andromda-ejb3/src/changes/changes.xml Index: changes.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/changes/changes.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- changes.xml 29 May 2006 01:46:08 -0000 1.1 +++ changes.xml 29 May 2006 06:39:00 -0000 1.2 @@ -41,6 +41,9 @@ NamedQuery definition to pick up firstResult and maxResult arguments modelled with these stereotypes and NOT include then in where clause. </action> + <action dev="vancek" type="add"> + Added installation howto. + </action> </release> </body> </document> \ No newline at end of file |
From: Vance K. <va...@us...> - 2006-06-03 15:39:43
|
User: vancek Date: 06/06/03 08:39:42 Modified: andromda-ejb3/src/main/resources/templates/ejb3 SessionBeanBase.vsl MessageDrivenListener.vsl Interceptor.vsl SessionListener.vsl andromda-ejb3/src/changes changes.xml Log: updated interceptor related class package names to javax.interceptor. javax.annotation.EJB moved to javax.ejb.EJB. updates for EJB 3.0 FR (JBoss 4.0.4-GA with RC8). Revision Changes Path 1.5 +2 -2 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBeanBase.vsl Index: SessionBeanBase.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBeanBase.vsl,v retrieving revision 1.4 retrieving revision 1.5 diff -u -w -r1.4 -r1.5 --- SessionBeanBase.vsl 29 May 2006 01:41:19 -0000 1.4 +++ SessionBeanBase.vsl 3 Jun 2006 15:39:42 -0000 1.5 @@ -114,7 +114,7 @@ /** * Inject session EJB ${reference.name} */ - @javax.annotation.EJB + @javax.ejb.EJB protected ${reference.fullyQualifiedServiceRemoteInterfaceName} $stringUtils.uncapitalize(${reference.name}); #**##end #end @@ -128,7 +128,7 @@ /** * Inject DAO ${daoReference.daoName} */ - @javax.annotation.EJB + @javax.ejb.EJB private ${daoReference.fullyQualifiedDaoName} $stringUtils.uncapitalize(${daoReference.daoName}); #**##end #end 1.6 +2 -2 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/MessageDrivenListener.vsl Index: MessageDrivenListener.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/MessageDrivenListener.vsl,v retrieving revision 1.5 retrieving revision 1.6 diff -u -w -r1.5 -r1.6 --- MessageDrivenListener.vsl 29 May 2006 01:41:19 -0000 1.5 +++ MessageDrivenListener.vsl 3 Jun 2006 15:39:42 -0000 1.6 @@ -20,7 +20,7 @@ } @javax.annotation.PostConstruct - public void postConstruct(javax.ejb.InvocationContext ctx) + public void postConstruct(javax.interceptor.InvocationContext ctx) { try { @@ -34,7 +34,7 @@ } @javax.annotation.PreDestroy - public void preDestroy(javax.ejb.InvocationContext ctx) + public void preDestroy(javax.interceptor.InvocationContext ctx) { try { 1.4 +1 -1 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/Interceptor.vsl Index: Interceptor.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/Interceptor.vsl,v retrieving revision 1.3 retrieving revision 1.4 diff -u -w -r1.3 -r1.4 --- Interceptor.vsl 29 May 2006 01:41:19 -0000 1.3 +++ Interceptor.vsl 3 Jun 2006 15:39:42 -0000 1.4 @@ -16,7 +16,7 @@ * @return */ @javax.interceptor.AroundInvoke - public Object execute(javax.ejb.InvocationContext ctx) + public Object execute(javax.interceptor.InvocationContext ctx) throws Exception { // Add implementation 1.7 +4 -4 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionListener.vsl Index: SessionListener.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionListener.vsl,v retrieving revision 1.6 retrieving revision 1.7 diff -u -w -r1.6 -r1.7 --- SessionListener.vsl 11 Apr 2006 15:44:24 -0000 1.6 +++ SessionListener.vsl 3 Jun 2006 15:39:42 -0000 1.7 @@ -20,7 +20,7 @@ } @javax.annotation.PostConstruct - public void postConstruct(javax.ejb.InvocationContext ctx) + public void postConstruct(javax.interceptor.InvocationContext ctx) { try { @@ -34,7 +34,7 @@ } @javax.annotation.PreDestroy - public void preDestroy(javax.ejb.InvocationContext ctx) + public void preDestroy(javax.interceptor.InvocationContext ctx) { try { @@ -49,7 +49,7 @@ #if ($service.stateful) @javax.ejb.PostActivate - public void postActivate(javax.ejb.InvocationContext ctx) + public void postActivate(javax.interceptor.InvocationContext ctx) { try { @@ -63,7 +63,7 @@ } @javax.ejb.PrePassivate - public void prePassivate(javax.ejb.InvocationContext ctx) + public void prePassivate(javax.interceptor.InvocationContext ctx) { try { 1.3 +25 -0 cartridges/andromda-ejb3/src/changes/changes.xml Index: changes.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/changes/changes.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -w -r1.2 -r1.3 --- changes.xml 29 May 2006 06:39:00 -0000 1.2 +++ changes.xml 3 Jun 2006 15:39:42 -0000 1.3 @@ -44,6 +44,31 @@ <action dev="vancek" type="add"> Added installation howto. </action> + <action dev="tlu" type="add"> + Added equals, hashCode and toString methods to entities. + </action> + <action dev="vancek" type="update"> + Updates to bring up to date with EJB 3.0 FR. + Now require JBoss 4.0.4-GA with EJB 3.0 RC8-PFD update. + Update include + @javax.annotation.EJB --> @javax.ejb.EJB + Interceptor related classes and annotations moved to javax.interceptor package. + </action> + <action dev="vancek" type="fix"> + MDB base class must implement javax.jms.MessageListener to avoid the following error message + on deployment: + java.lang.RuntimeException: unable to determine messagingType interface for MDB + </action> + <action dev="vancek" type="delete"> + Removed container configuration option via tagged value on message driven beans since it + is no longer supported. + </action> + <action dev="vancek" type="add"> + Added minimumPoolSize (@andromda.ejb.mdb.pool.size.min) and maximumPoolSize + (@andromda.ejb.mdb.pool.size.min) tagged value options for message + driven beans i.e. to allow singleton message driven beans. These are added as + activation config properties to the ejb-jar.xml. + </action> </release> </body> </document> \ No newline at end of file |
From: Vance K. <va...@us...> - 2006-06-14 05:07:26
|
User: vancek Date: 06/06/13 22:07:25 Modified: andromda-ejb3/src/changes changes.xml Log: update maven2.reposity introduced Seam components fix view types - jira EJB-27 Revision Changes Path 1.4 +27 -2 cartridges/andromda-ejb3/src/changes/changes.xml Index: changes.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/changes/changes.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -u -w -r1.3 -r1.4 --- changes.xml 3 Jun 2006 15:39:42 -0000 1.3 +++ changes.xml 14 Jun 2006 05:07:25 -0000 1.4 @@ -59,7 +59,7 @@ on deployment: java.lang.RuntimeException: unable to determine messagingType interface for MDB </action> - <action dev="vancek" type="delete"> + <action dev="vancek" type="remove"> Removed container configuration option via tagged value on message driven beans since it is no longer supported. </action> @@ -67,7 +67,32 @@ Added minimumPoolSize (@andromda.ejb.mdb.pool.size.min) and maximumPoolSize (@andromda.ejb.mdb.pool.size.min) tagged value options for message driven beans i.e. to allow singleton message driven beans. These are added as - activation config properties to the ejb-jar.xml. + activation config properties to the ejb-jar.xml. Added documentation. + </action> + <action dev="vance" type="update"> + Updated the EJB3MetafacadeModel.xml to use the maven2.repository environment variable rather than + hard coded paths for profiles. + </action> + <action dev="vancek" type="update"> + If session bean is a Seam component, then don't set the bean type to stateful if the bean contains an + attribute. For session bean Seam components, the only way to specify it as a SFSB is via tagged value on + the class. + </action> + <action dev="vancek" type="fix"> + Don't restrict rendering of accessor methods for session bean attributes that only have 'public' + visibility. Accessors generated for all attributes for all visilities. + </action> + <action dev="vancek" type="add"> + Introduce JBoss Seam components corresponding with Seam 1.0.0-CR3. + Always generate a local interface for a session bean if it is a Seam component. + </action> + <action dev="vancek" type="fix"> + If a session bean operation is modelled for the local view type interface, a local interface is NOT + generated. When returning a view type from the EJB3SessionFacade, must lookup all business operations to + determine their view type individually and return a view type for the session bean to accomodate local, + remote and both. + Refactor service delegate templates and introduce a parent base class which all service delegates extend. + Fix problem with exposing only remote operations as webservice endpoints. </action> </release> </body> |
From: Vance K. <va...@us...> - 2006-06-14 08:08:48
|
User: vancek Date: 06/06/14 01:08:47 Modified: andromda-ejb3/src/main/resources/META-INF/andromda namespace.xml cartridge.xml andromda-ejb3/src/main/resources/templates/ejb3/config persistence.xml.vsl andromda-ejb3/src/changes changes.xml Log: added support for extra ejb-jar inclusions in persistence.xml - JIRA EJB-28 Revision Changes Path 1.24 +6 -0 cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/namespace.xml Index: namespace.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/namespace.xml,v retrieving revision 1.23 retrieving revision 1.24 diff -u -w -r1.23 -r1.24 --- namespace.xml 14 Jun 2006 04:55:21 -0000 1.23 +++ namespace.xml 14 Jun 2006 08:08:47 -0000 1.24 @@ -205,6 +205,12 @@ or serializable types to/from JDBC. </documentation> </property> + <property name="jarFiles" required="false"> + <documentation> + The comma separated ejb jars that are included + in the deployed ear package. + </documentation> + </property> </propertyGroup> <propertyGroup name="Cache"> <property name="hibernateCacheProvider" required="false"> 1.26 +1 -0 cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/cartridge.xml Index: cartridge.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/cartridge.xml,v retrieving revision 1.25 retrieving revision 1.26 diff -u -w -r1.25 -r1.26 --- cartridge.xml 14 Jun 2006 04:52:37 -0000 1.25 +++ cartridge.xml 14 Jun 2006 08:08:47 -0000 1.26 @@ -49,6 +49,7 @@ <property reference="daoInheritanceEnabled"/> <property reference="enableDaoPropertiesCreateMethod"/> <property reference="seamEnabled"/> + <property reference="jarFiles"/> <!-- cartridge-property merge-point --> 1.3 +8 -0 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/config/persistence.xml.vsl Index: persistence.xml.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/config/persistence.xml.vsl,v retrieving revision 1.2 retrieving revision 1.3 diff -u -w -r1.2 -r1.3 --- persistence.xml.vsl 11 Apr 2006 15:50:03 -0000 1.2 +++ persistence.xml.vsl 14 Jun 2006 08:08:47 -0000 1.3 @@ -17,6 +17,14 @@ #if ($stringUtils.isNotBlank($entityManagerJTADataSource)) <jta-data-source>${entityManagerJTADataSource}</jta-data-source> #end +#if ($stringUtils.isNotBlank($jarFiles)) +#**##set ($jars = $stringUtils.split($jarFiles,',')) +#**##foreach ($jar in $jars) +#* *##if ($stringUtils.isNotBlank($jar)) + <jar-file>${jar}</jar-file> +#* *##end +#**##end +#end <properties> #if ($stringUtils.isNotBlank($hibernateHbm2DDLAuto)) <property name="hibernate.hbm2ddl.auto" value="${hibernateHbm2DDLAuto}"/> 1.5 +7 -4 cartridges/andromda-ejb3/src/changes/changes.xml Index: changes.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/changes/changes.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -u -w -r1.4 -r1.5 --- changes.xml 14 Jun 2006 05:07:25 -0000 1.4 +++ changes.xml 14 Jun 2006 08:08:47 -0000 1.5 @@ -44,7 +44,7 @@ <action dev="vancek" type="add"> Added installation howto. </action> - <action dev="tlu" type="add"> + <action dev="vancek" due-to="tlu" type="add"> Added equals, hashCode and toString methods to entities. </action> <action dev="vancek" type="update"> @@ -69,7 +69,7 @@ driven beans i.e. to allow singleton message driven beans. These are added as activation config properties to the ejb-jar.xml. Added documentation. </action> - <action dev="vance" type="update"> + <action dev="vancek" type="update"> Updated the EJB3MetafacadeModel.xml to use the maven2.repository environment variable rather than hard coded paths for profiles. </action> @@ -86,14 +86,17 @@ Introduce JBoss Seam components corresponding with Seam 1.0.0-CR3. Always generate a local interface for a session bean if it is a Seam component. </action> - <action dev="vancek" type="fix"> + <action dev="vancek" due-to="tlu" type="fix"> If a session bean operation is modelled for the local view type interface, a local interface is NOT generated. When returning a view type from the EJB3SessionFacade, must lookup all business operations to determine their view type individually and return a view type for the session bean to accomodate local, - remote and both. + remote and both. JIRA EJB-27 Refactor service delegate templates and introduce a parent base class which all service delegates extend. Fix problem with exposing only remote operations as webservice endpoints. </action> + <action dev="vancek" due-to="tlu" type="add"> + Added support for adding ejb-jar elements to the persistence.xml. JIRA EJB-28. + </action> </release> </body> </document> \ No newline at end of file |
From: Vance K. <va...@us...> - 2006-06-14 14:37:31
|
User: vancek Date: 06/06/14 07:37:25 Modified: andromda-ejb3/src/main/resources/templates/ejb3 Enumeration.vsl andromda-ejb3/src/changes changes.xml Log: generate docs for enumeration literals - JIRA EJB-30 Revision Changes Path 1.4 +5 -2 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/Enumeration.vsl Index: Enumeration.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/Enumeration.vsl,v retrieving revision 1.3 retrieving revision 1.4 diff -u -w -r1.3 -r1.4 --- Enumeration.vsl 9 Mar 2006 13:22:37 -0000 1.3 +++ Enumeration.vsl 14 Jun 2006 14:37:25 -0000 1.4 @@ -13,10 +13,13 @@ public enum ${enum.name} implements java.io.Serializable { #foreach ($literal in $enum.literals) + /** +$literal.getDocumentation(" * ") + */ ${literal.name}#if ($velocityCount != $enum.literals.size()),#else#**#;#end -#end +#end /** * Return the ${enum.name} from a string value * @return ${enum.name} enum object 1.6 +3 -0 cartridges/andromda-ejb3/src/changes/changes.xml Index: changes.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/changes/changes.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -u -w -r1.5 -r1.6 --- changes.xml 14 Jun 2006 08:08:47 -0000 1.5 +++ changes.xml 14 Jun 2006 14:37:25 -0000 1.6 @@ -97,6 +97,9 @@ <action dev="vancek" due-to="tlu" type="add"> Added support for adding ejb-jar elements to the persistence.xml. JIRA EJB-28. </action> + <action dev="vancek" due-to="tlu" type="update"> + Generate documentation for enumeration literals. + </action> </release> </body> </document> \ No newline at end of file |
From: Vance K. <va...@us...> - 2006-06-17 12:02:22
|
User: vancek Date: 06/06/17 05:02:21 Modified: andromda-ejb3/src/site/xdoc installation.xml index.xml andromda-ejb3/src/site site.xml andromda-ejb3/src/changes changes.xml Added: andromda-ejb3/src/site/fml faq.fml Log: site update + FAQ Revision Changes Path 1.2 +9 -2 cartridges/andromda-ejb3/src/site/xdoc/installation.xml Index: installation.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/site/xdoc/installation.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- installation.xml 29 May 2006 06:39:00 -0000 1.1 +++ installation.xml 17 Jun 2006 12:02:21 -0000 1.2 @@ -18,9 +18,17 @@ You can install Maven <a href="http://maven.apache.org/download.html#Installation">here</a>. </p> + <p class="highlight"> + If you want to build the site docs, you need to download the latest Maven 2.0.x source + from https://svn.apache.org/repos/asf/maven/components/branches/maven-2.0.x and follow + the instructions to build, assemble and set your M2_HOME and PATH variables. + </p> <p> You need to have an instance of AndroMDA 3.2. At the time of writing this, 3.2 RC1 - was released. Alternatively, you can get the latest 3.2-SNAPSHOT from CVS and build it. + was released but the latest 3.2-SNAPSHOT from CVS contains updates to the project generator + and site plugin, and is more suitable to use with the EJB3 cartridge. Follow the anonymous + CVS access at <a href="http://sourceforge.net/cvs/?group_id=73047">AndroMDA project</a> to + checkout the latest <b>andromda-all</b>. </p> </subsection> <a name="Getting_the_Cartridge"/> @@ -71,7 +79,6 @@ <a href="HowToModel-src.zip">here</a> and extract to the target/site folder of the andromda-ejb3 plugin. </p> - </subsection> </section> <section name="Next"> 1.4 +3 -2 cartridges/andromda-ejb3/src/site/xdoc/index.xml Index: index.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/site/xdoc/index.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -u -w -r1.3 -r1.4 --- index.xml 29 May 2006 01:53:36 -0000 1.3 +++ index.xml 17 Jun 2006 12:02:21 -0000 1.4 @@ -5,11 +5,12 @@ <title>AndroMDA - EJB3 - Introduction</title> </properties> <body> - <section name="AndroMDA EJB Cartridge"> + <section name="AndroMDA EJB3 Cartridge"> <p> The purpose of this cartridge is to generate EJB 3.0 compliant persistence tier, fronted by Session EJB business object facades. To learn how to use this cartridge you can follow the, - howtos similart to a tutorial. You do not need to navigate the howtos sequentially. + howtos, reference the profile and namespace properties and try the examples in the howto yourself. + You do not need to navigate the howtos sequentially. </p> <p> Please see the <a href="profile.html">Profile</a> and <a href="namespace.html">Namespace</a> 1.15 +4 -0 cartridges/andromda-ejb3/src/site/site.xml Index: site.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/site/site.xml,v retrieving revision 1.14 retrieving revision 1.15 diff -u -w -r1.14 -r1.15 --- site.xml 29 May 2006 01:50:49 -0000 1.14 +++ site.xml 17 Jun 2006 12:02:21 -0000 1.15 @@ -47,6 +47,10 @@ <item name="Embeddable Value Objects" href="howto20.html"/> <item name="Tips & Tricks" href="tips.html"/> </menu> + <menu name="Support"> + <item name="FAQ" href="faq.html"/> + <item name="EJB Forum" href="http://galaxy.andromda.org/forum/viewforum.php?f=17"/> + </menu> ${reports} </body> </project> 1.1 cartridges/andromda-ejb3/src/site/fml/faq.fml Index: faq.fml =================================================================== <?xml version="1.0"?> <faqs id="General FAQ"> <part id="General"> <faq id="problem_installing"> <question>Problems installing the EJB3 cartridge?</question> <answer> <p> Re-read the installation howto. If that doesn't help, post a new topic in the EJB cartridge forum. Do not post in the sticky guides. </p> </answer> </faq> <faq id="release"> <question>When is the EJB3 cartridge going to be released?</question> <answer> <p> Hopefully soon. Thanks to a few people who use the cartridge, we are able to fix some of the issues with releasing a new cartride. Unfortunately, until JBoss AS 5, the JBoss EJB 3.0 implementation will not satisfy the EJB 3.0 FR specification, although it is very close. </p> </answer> </faq> <faq id="jboss_seam"> <question>Is JBoss Seam going to be supported?</question> <answer> <p> That is definitely in the pipeworks. There is some initial support in the cartridge in CVS, but no documentation as yet. Stay tuned and keep your eye on the EJB cartridge forum. </p> </answer> </faq> <faq id="migrating_from_hibernate"> <question>Migrating from Hibernate to EJB3?</question> <answer> <p> Migrating from Hibernate will be easier than you think. Just remember that if you have specified tagged values with tags in the <b>andromda.hibernate</b> namespace, you need to change these to the corresponding tag in the <b>andromda.persistence</b> namespace. Check the <a href="profile.html">profile</a> page to find the tagged value you are looking for. </p> </answer> </faq> </part> </faqs> 1.8 +6 -3 cartridges/andromda-ejb3/src/changes/changes.xml Index: changes.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/changes/changes.xml,v retrieving revision 1.7 retrieving revision 1.8 diff -u -w -r1.7 -r1.8 --- changes.xml 17 Jun 2006 03:51:02 -0000 1.7 +++ changes.xml 17 Jun 2006 12:02:21 -0000 1.8 @@ -105,6 +105,9 @@ render the DiscriminatorValue annotation. This annotation should only be rendered in subclasses of single table inheritance hierarchies. </action> + <action dev="vancek" type="add"> + Added FAQ support section menu to site. + </action> </release> </body> </document> \ No newline at end of file |
From: Vance K. <va...@us...> - 2006-06-26 14:40:40
|
User: vancek Date: 06/06/26 07:40:34 Modified: andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades EJB3ManageableEntityAttributeFacadeLogicImpl.java EJB3AssociationEndFacadeLogicImpl.java EJB3EntityAttributeFacadeLogicImpl.java andromda-ejb3 pom.xml andromda-ejb3/src/changes changes.xml Log: changed back to be jdk 1.4 compliant (remove @Override) Revision Changes Path 1.4 +0 -1 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3ManageableEntityAttributeFacadeLogicImpl.java Index: EJB3ManageableEntityAttributeFacadeLogicImpl.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3ManageableEntityAttributeFacadeLogicImpl.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -w -r1.3 -r1.4 --- EJB3ManageableEntityAttributeFacadeLogicImpl.java 26 Jun 2006 06:53:32 -0000 1.3 +++ EJB3ManageableEntityAttributeFacadeLogicImpl.java 26 Jun 2006 14:40:34 -0000 1.4 @@ -26,7 +26,6 @@ /** * @see org.andromda.cartridges.ejb3.metafacades.EJB3ManageableEntityAttributeFacadeLogic#getTemporalType() */ - @Override public String getTemporalType() { String temporalType = super.getTemporalType(); 1.11 +0 -1 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3AssociationEndFacadeLogicImpl.java Index: EJB3AssociationEndFacadeLogicImpl.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3AssociationEndFacadeLogicImpl.java,v retrieving revision 1.10 retrieving revision 1.11 diff -u -w -r1.10 -r1.11 --- EJB3AssociationEndFacadeLogicImpl.java 26 Jun 2006 06:53:32 -0000 1.10 +++ EJB3AssociationEndFacadeLogicImpl.java 26 Jun 2006 14:40:34 -0000 1.11 @@ -198,7 +198,6 @@ /** * @see org.andromda.metafacades.uml.AssociationEndFacade#getGetterSetterTypeName() */ - @Override public String getGetterSetterTypeName() { String getterSetterTypeName = null; 1.15 +0 -5 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3EntityAttributeFacadeLogicImpl.java Index: EJB3EntityAttributeFacadeLogicImpl.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3EntityAttributeFacadeLogicImpl.java,v retrieving revision 1.14 retrieving revision 1.15 diff -u -w -r1.14 -r1.15 --- EJB3EntityAttributeFacadeLogicImpl.java 26 Jun 2006 06:53:32 -0000 1.14 +++ EJB3EntityAttributeFacadeLogicImpl.java 26 Jun 2006 14:40:34 -0000 1.15 @@ -52,7 +52,6 @@ /** * @see org.andromda.metafacades.uml.AttributeFacade#getGetterName() */ - @Override public String getGetterName() { return "get" + StringUtils.capitalize(super.getName()); @@ -63,7 +62,6 @@ * * @see org.andromda.metafacades.uml.AttributeFacade#isRequired() */ - @Override public boolean isRequired() { boolean required = super.isRequired(); @@ -88,7 +86,6 @@ * * @see org.andromda.metafacades.uml.AttributeFacade#getDefaultValue() */ - @Override public String getDefaultValue() { String defaultValue = super.getDefaultValue(); @@ -367,7 +364,6 @@ * * @see org.andromda.metafacades.uml.EntityAttribute#getColumnLength() */ - @Override public String getColumnLength() { String columnLength = (String)this.findTaggedValue(EJB3Profile.TAGGEDVALUE_PERSISTENCE_COLUMN_LENGTH); @@ -384,7 +380,6 @@ * * @see org.andromda.metafacades.uml.EntityAttribute#getColumnName() */ - @Override public String getColumnName() { String columnName = (String)this.findTaggedValue(EJB3Profile.TAGGEDVALUE_PERSISTENCE_COLUMN); 1.7 +0 -8 cartridges/andromda-ejb3/pom.xml Index: pom.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/pom.xml,v retrieving revision 1.6 retrieving revision 1.7 diff -u -w -r1.6 -r1.7 --- pom.xml 26 Jun 2006 06:55:08 -0000 1.6 +++ pom.xml 26 Jun 2006 14:40:34 -0000 1.7 @@ -41,14 +41,6 @@ <build> <plugins> <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <configuration> - <source>1.5</source> - <target>1.5</target> - </configuration> - </plugin> - <plugin> <groupId>org.andromda.maven.plugins</groupId> <artifactId>andromda-maven-plugin</artifactId> <dependencies> 1.11 +4 -0 cartridges/andromda-ejb3/src/changes/changes.xml Index: changes.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/changes/changes.xml,v retrieving revision 1.10 retrieving revision 1.11 diff -u -w -r1.10 -r1.11 --- changes.xml 26 Jun 2006 14:21:50 -0000 1.10 +++ changes.xml 26 Jun 2006 14:40:34 -0000 1.11 @@ -173,6 +173,10 @@ Fix erroneous signature of entity constructor where no entity attributes exist but navigable associations do exist. </action> + <action dev="vancek" type="update"> + Revert the build back to using the default Java compiler (1.4) - 1.5 isn't supported for the automated + build process for andromda-plugins. + </action> </release> </body> </document> \ No newline at end of file |
From: Vance K. <va...@us...> - 2006-06-26 16:09:36
|
User: vancek Date: 06/06/26 08:12:23 Modified: andromda-ejb3/src/changes changes.xml Log: update Revision Changes Path 1.12 +6 -1 cartridges/andromda-ejb3/src/changes/changes.xml Index: changes.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/changes/changes.xml,v retrieving revision 1.11 retrieving revision 1.12 diff -u -w -r1.11 -r1.12 --- changes.xml 26 Jun 2006 14:40:34 -0000 1.11 +++ changes.xml 26 Jun 2006 15:12:23 -0000 1.12 @@ -171,12 +171,17 @@ </action> <action dev="vancek" due-to="tlu" type="fix"> Fix erroneous signature of entity constructor where no entity attributes exist but navigable associations - do exist. + do exist. JIRA EJB-34 </action> <action dev="vancek" type="update"> Revert the build back to using the default Java compiler (1.4) - 1.5 isn't supported for the automated build process for andromda-plugins. </action> + <action dev="vancek" due-to="tlu" type="add"> + Add support for a select few meta type annotations for attribues in embedded value classes. Need to + confirm if @Transient, @Version, @Lob and @Basic are supported. @Column, @Temporal and @Enumerated have + been confirmed to work. JIRA EJB-31 + </action> </release> </body> </document> \ No newline at end of file |
From: Vance K. <va...@us...> - 2006-07-01 12:34:30
|
User: vancek Date: 06/07/01 05:34:30 Modified: andromda-ejb3/src/main/resources/templates/ejb3 ServiceDelegate.vsl andromda-ejb3/src/changes changes.xml Log: fix JIRA EJB-37 - incorrent break statement after a return in switch Revision Changes Path 1.6 +2 -2 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/ServiceDelegate.vsl Index: ServiceDelegate.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/ServiceDelegate.vsl,v retrieving revision 1.5 retrieving revision 1.6 diff -u -w -r1.5 -r1.6 --- ServiceDelegate.vsl 14 Jun 2006 04:49:55 -0000 1.5 +++ ServiceDelegate.vsl 1 Jul 2006 12:34:29 -0000 1.6 @@ -78,12 +78,12 @@ { case LOCAL_VIEW_TYPE: #if ($operation.returnTypePresent)return #end#**#get${service.name}Local().${operation.name}(${operation.argumentNames}); - break; + #if (!$operation.returnTypePresent)break;#end case REMOTE_VIEW_TYPE: default: #if ($operation.returnTypePresent)return #end#**#get${service.name}Remote().${operation.name}(${operation.argumentNames}); - break; + #if (!$operation.returnTypePresent)break;#end } #* *##elseif ($operation.viewTypeAbsoluteRemote) #if ($operation.returnTypePresent)return #end#**#get${service.name}Remote().${operation.name}(${operation.argumentNames}); 1.16 +26 -13 cartridges/andromda-ejb3/src/changes/changes.xml Index: changes.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/changes/changes.xml,v retrieving revision 1.15 retrieving revision 1.16 diff -u -w -r1.15 -r1.16 --- changes.xml 27 Jun 2006 11:13:18 -0000 1.15 +++ changes.xml 1 Jul 2006 12:34:30 -0000 1.16 @@ -87,15 +87,15 @@ Always generate a local interface for a session bean if it is a Seam component. </action> <action dev="vancek" due-to="tlu" type="fix"> - If a session bean operation is modelled for the local view type interface, a local interface is NOT - generated. When returning a view type from the EJB3SessionFacade, must lookup all business operations to + JIRA EJB-27 - If a session bean operation is modelled for the local view type interface, a local interface is + NOT generated. When returning a view type from the EJB3SessionFacade, must lookup all business operations to determine their view type individually and return a view type for the session bean to accomodate local, - remote and both. JIRA EJB-27 + remote and both. Refactor service delegate templates and introduce a parent base class which all service delegates extend. Fix problem with exposing only remote operations as webservice endpoints. </action> <action dev="vancek" due-to="tlu" type="add"> - Added support for adding ejb-jar elements to the persistence.xml. JIRA EJB-28. + JIRA EJB-28 - Added support for adding ejb-jar elements to the persistence.xml. </action> <action dev="vancek" due-to="tlu" type="update"> Generate documentation for enumeration literals. @@ -112,7 +112,7 @@ Remove references to attributes modelled with a @Version annotation (optimistic lock value for entity) in manageable service components. Initial work removed attribute from getAttributes, but that caused problems from the manageable web tier action methods create and update. To account for this, allow the attribute as - arguement to the methods, but do not call the set accessor. + argument to the methods, but do not call the corresponding setter. </action> <action dev="vancek" type="fix"> Moved the @Version annotation to the entity attribute. It had no effect on the getter method. @@ -172,26 +172,26 @@ need for the existing overwritten methods in the manageable entity facades. </action> <action dev="vancek" due-to="tlu" type="fix"> - Fix erroneous signature of entity constructor where no entity attributes exist but navigable associations - do exist. JIRA EJB-34 + JIRA EJB-34 - Fix erroneous signature of entity constructor where no entity attributes exist but navigable + associations do exist. </action> <action dev="vancek" type="update"> Revert the build back to using the default Java compiler (1.4) - 1.5 isn't supported for the automated build process for andromda-plugins. </action> <action dev="vancek" due-to="tlu" type="add"> - Add support for a select few meta type annotations for attribues in embedded value classes. Need to - confirm if @Transient, @Version, @Lob and @Basic are supported. @Column, @Temporal and @Enumerated have - been confirmed to work. JIRA EJB-31 + JIRA EJB-31 - Add support for a select few meta type annotations for attribues in embedded value classes. + Need to confirm if @Transient, @Version, @Lob and @Basic are supported. @Column, @Temporal and @Enumerated + have been confirmed to work. </action> <action dev="vancek" due-to="tlu" type="add"> - Add support for embedded value object associations as well as attribute overrides. JIRA EJB-32. + JIRA EJB-32 - Add support for embedded value object associations as well as attribute overrides. NOTE: This is still partial support. The association mutators need to be added with appropriate annotation to the embedded value object base abstract class. </action> <action dev="vancek" due-to="tlu" type="fix"> - Fix problem when there are two embedded value objects of the same type in the same entity. Fix for both - attribute and association overrides. JIRA EJB=33 + JIRA EJB-33 - Fix problem when there are two embedded value objects of the same type in the same entity. + Fix for both attribute and association overrides. </action> <action dev="vancek" due-to="tlu" type="update"> JIRA EJB-29 - the implementation class of the embedded value object was unused and the base class was abstract. @@ -200,6 +200,19 @@ class and the embeddable implementation class is now the defined as the embeddable class using orm.xml rather than metadata annotation. </action> + <action dev="vancek" due-to="pawel" type="fx"> + JIRA EJB-36 - Entities and composite primary keys now implement Comparable interface and implement the + compareTo method. + @org.hibernate.annotations.Sort annotation is only set if the collection interface for an association end + is defined as java.util.SortedSet. + </action> + <action dev="vancek" type="add"> + Added basic JBoss Seam documentation to site docs. + </action> + <action dev="vancek" due-to="tlu" type="fix"> + JIRA EJB-37 - Fix problem with service delegate switch statement where the break statement should not be + issued after a return statement. + </action> </release> </body> </document> \ No newline at end of file |
From: Vance K. <va...@us...> - 2006-07-04 07:47:07
|
User: vancek Date: 06/07/04 00:47:07 Modified: andromda-ejb3/src/main/resources/templates/ejb3 DaoBase.vsl andromda-ejb3/src/changes changes.xml Log: fix JIRA EJB-38 - query in DAO base with argument enum type has to set the enum class as the parameter, not the value (name or ordinal) Revision Changes Path 1.9 +0 -10 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/DaoBase.vsl Index: DaoBase.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/DaoBase.vsl,v retrieving revision 1.8 retrieving revision 1.9 diff -u -w -r1.8 -r1.9 --- DaoBase.vsl 26 Jun 2006 06:45:12 -0000 1.8 +++ DaoBase.vsl 4 Jul 2006 07:47:06 -0000 1.9 @@ -513,11 +513,6 @@ #* *##set ($argumentValue = "new ${argument.type.wrapperName}($argument.name)") #* *##else #* *##set ($argumentValue = "${argument.name}") -#* *##if ($argument.enumerationTypeOrdinal) -#* *##set ($argumentValue = "${argumentValue}.ordinal()") -#* *##elseif ($argument.enumerationTypeString) -#* *##set ($argumentValue = "${argumentValue}.name()") -#* *##end #* *##end #* *##if ($argument.temporalType) #* *##set ($argumentValue = "${argumentValue}, javax.persistence.TemporalType.${argument.temporalType}") @@ -585,11 +580,6 @@ #* *##set ($argumentValue = "new ${argument.type.wrapperName}($argument.name)") #* *##else #* *##set ($argumentValue = "${argument.name}") -#* *##if ($argument.enumerationTypeOrdinal) -#* *##set ($argumentValue = "${argumentValue}.ordinal()") -#* *##elseif ($argument.enumerationTypeString) -#* *##set ($argumentValue = "${argumentValue}.name()") -#* *##end #* *##end #* *##if ($argument.temporalType) #* *##set ($argumentValue = "${argumentValue}, javax.persistence.TemporalType.${argument.temporalType}") 1.17 +4 -0 cartridges/andromda-ejb3/src/changes/changes.xml Index: changes.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/changes/changes.xml,v retrieving revision 1.16 retrieving revision 1.17 diff -u -w -r1.16 -r1.17 --- changes.xml 1 Jul 2006 12:34:30 -0000 1.16 +++ changes.xml 4 Jul 2006 07:47:07 -0000 1.17 @@ -213,6 +213,10 @@ JIRA EJB-37 - Fix problem with service delegate switch statement where the break statement should not be issued after a return statement. </action> + <action dev="vancek" due-to="sverker" type="fix"> + JIRA EJB-38 - The query in the DAO base class for finder methods with argument enum type has to set + the enum class as the parameter for the querty, not the value (name or ordinal). + </action> </release> </body> </document> \ No newline at end of file |
From: Vance K. <va...@us...> - 2006-07-10 05:29:38
|
User: vancek Date: 06/07/09 22:29:37 Modified: andromda-ejb3/src/main/resources/META-INF/andromda metafacades.xml andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades EJB3ManageableEntityAttributeFacadeLogicImpl.java EJB3EntityAttributeFacadeLogicImpl.java andromda-ejb3/src/changes changes.xml Log: reset EJB3ManageableEntityAttributeFacade metafacade mapping to use context element refactored getTemporalType in EJB3EntityAttributeFacade and removed overriding instance in EJB3ManageableEntityAttributeFacade Revision Changes Path 1.25 +4 -1 cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/metafacades.xml Index: metafacades.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/metafacades.xml,v retrieving revision 1.24 retrieving revision 1.25 diff -u -w -r1.24 -r1.25 --- metafacades.xml 26 Jun 2006 06:46:07 -0000 1.24 +++ metafacades.xml 10 Jul 2006 05:29:36 -0000 1.25 @@ -41,6 +41,7 @@ <property reference="persistenceContainerName"/> <property reference="persistenceContextUnitName"/> <property reference="securityRealm"/> + <property reference="manageableRolesAllowed"/> <property reference="allowDefaultServiceException"/> <property reference="compositionDefinesEagerLoading"/> <property reference="jndiNamePrefix"/> @@ -63,7 +64,9 @@ </metafacade> <metafacade class="org.andromda.cartridges.ejb3.metafacades.EJB3ManageableEntityAttributeFacadeLogicImpl"> <mapping> - <property name="owner.manageable"/> + <context> + org.andromda.cartridges.ejb3.metafacades.EJB3ManageableEntityFacade + </context> </mapping> </metafacade> <metafacade class="org.andromda.cartridges.ejb3.metafacades.EJB3ManageableEntityAssociationEndFacadeLogicImpl"> 1.5 +0 -18 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3ManageableEntityAttributeFacadeLogicImpl.java Index: EJB3ManageableEntityAttributeFacadeLogicImpl.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3ManageableEntityAttributeFacadeLogicImpl.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -w -r1.4 -r1.5 --- EJB3ManageableEntityAttributeFacadeLogicImpl.java 26 Jun 2006 14:40:34 -0000 1.4 +++ EJB3ManageableEntityAttributeFacadeLogicImpl.java 10 Jul 2006 05:29:36 -0000 1.5 @@ -13,26 +13,8 @@ public class EJB3ManageableEntityAttributeFacadeLogicImpl extends EJB3ManageableEntityAttributeFacadeLogic { - /** - * The property that stores the defuult temporal type for date based attributes - */ - public static final String ENTITY_DEFAULT_TEMPORAL_TYPE = "entityDefaultTemporalType"; - public EJB3ManageableEntityAttributeFacadeLogicImpl (Object metaObject, String context) { super (metaObject, context); } - - /** - * @see org.andromda.cartridges.ejb3.metafacades.EJB3ManageableEntityAttributeFacadeLogic#getTemporalType() - */ - public String getTemporalType() - { - String temporalType = super.getTemporalType(); - if (StringUtils.isBlank(temporalType)) - { - temporalType = String.valueOf(this.getConfiguredProperty(ENTITY_DEFAULT_TEMPORAL_TYPE)); - } - return temporalType; - } } \ No newline at end of file 1.16 +15 -1 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3EntityAttributeFacadeLogicImpl.java Index: EJB3EntityAttributeFacadeLogicImpl.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3EntityAttributeFacadeLogicImpl.java,v retrieving revision 1.15 retrieving revision 1.16 diff -u -w -r1.15 -r1.16 --- EJB3EntityAttributeFacadeLogicImpl.java 26 Jun 2006 14:40:34 -0000 1.15 +++ EJB3EntityAttributeFacadeLogicImpl.java 10 Jul 2006 05:29:36 -0000 1.16 @@ -40,6 +40,11 @@ */ public static final String DEFAULT_ENUM_LITERAL_COLUMN_LENGTH = "entityDefaultEnumLiteralColumnLength"; + /** + * The property that stores the defuult temporal type for date based attributes + */ + public static final String ENTITY_DEFAULT_TEMPORAL_TYPE = "entityDefaultTemporalType"; + // ---------------- constructor ------------------------------- public EJB3EntityAttributeFacadeLogicImpl (Object metaObject, String context) @@ -467,7 +472,16 @@ */ protected String handleGetTemporalType() { - return (String)this.findTaggedValue(EJB3Profile.TAGGEDVALUE_PERSISTENCE_TEMPORAL_TYPE); + String temporalType = null; + if (this.getType().isDateType()) + { + temporalType = (String)this.findTaggedValue(EJB3Profile.TAGGEDVALUE_PERSISTENCE_TEMPORAL_TYPE); + if (StringUtils.isBlank(temporalType)) + { + temporalType = String.valueOf(this.getConfiguredProperty(ENTITY_DEFAULT_TEMPORAL_TYPE)); + } + } + return temporalType; } /** 1.18 +6 -0 cartridges/andromda-ejb3/src/changes/changes.xml Index: changes.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/changes/changes.xml,v retrieving revision 1.17 retrieving revision 1.18 diff -u -w -r1.17 -r1.18 --- changes.xml 4 Jul 2006 07:47:07 -0000 1.17 +++ changes.xml 10 Jul 2006 05:29:37 -0000 1.18 @@ -217,6 +217,12 @@ JIRA EJB-38 - The query in the DAO base class for finder methods with argument enum type has to set the enum class as the parameter for the querty, not the value (name or ordinal). </action> + <action dev="vancek" type="fix"> + Reset EJB3ManageableEntityAttributeFacade metafacade mapping in metafacades.xml from using property element + to use context element. Otherwise, manageable entity attributes would map to EJB3EntityAttributeFacade. + This resulted in getTemporalType being refactored in EJB3EntityAttributeFacade and the overriding instance + in EJB3ManageableEntityAttributeFacade to be removed. + </action> </release> </body> </document> \ No newline at end of file |
From: Vance K. <va...@us...> - 2006-07-15 05:10:28
|
User: vancek Date: 06/07/14 22:10:28 Modified: andromda-ejb3/src/main/resources/templates/ejb3 SessionBeanBase.vsl SessionBeanImpl.vsl andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades EJB3SessionOperationFacadeLogicImpl.java andromda-ejb3/src/changes changes.xml Log: ops with non-public visibility in session beans were rendered with incorrect method signatures in the implementation Revision Changes Path 1.7 +2 -1 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBeanBase.vsl Index: SessionBeanBase.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBeanBase.vsl,v retrieving revision 1.6 retrieving revision 1.7 diff -u -w -r1.6 -r1.7 --- SessionBeanBase.vsl 14 Jun 2006 04:55:20 -0000 1.6 +++ SessionBeanBase.vsl 15 Jul 2006 05:10:28 -0000 1.7 @@ -333,8 +333,9 @@ #**##foreach ($operation in $operations) ## ## Check that operation is NOT a lifecycle callback +## and has public visibility ## -#* *##if (!$operation.lifecycleCallback) +#* *##if (!$operation.lifecycleCallback && $operation.visibility == "public") /** $operation.getDocumentation(" * ") */ 1.14 +10 -1 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBeanImpl.vsl Index: SessionBeanImpl.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBeanImpl.vsl,v retrieving revision 1.13 retrieving revision 1.14 diff -u -w -r1.13 -r1.14 --- SessionBeanImpl.vsl 14 Jun 2006 04:46:35 -0000 1.13 +++ SessionBeanImpl.vsl 15 Jul 2006 05:10:28 -0000 1.14 @@ -69,10 +69,19 @@ #**##foreach ($operation in $operations) #* *##if (!$operation.lifecycleCallback) /** +#* *##if ($operation.visibility == "public") * @see ${service.fullyQualifiedServiceBaseName}#${operation.getSignature(false)} +#* *##else +$operation.getDocumentation(" * ") +#* *##end */ #* *##set ($abstract = $service.abstract && $operation.abstract) - protected#if ($abstract) abstract#end $operation.returnType.fullyQualifiedName $operation.implementationSignature +#* *##if ($operation.visibility == "public") + protected## no newline +#* *##else + $operation.visibility##no newline +#* *##end +#if ($abstract) abstract#end $operation.returnType.fullyQualifiedName $operation.implementationSignature #* *##if ($abstract) throws java.lang.Exception; #* *##else 1.13 +3 -1 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3SessionOperationFacadeLogicImpl.java Index: EJB3SessionOperationFacadeLogicImpl.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3SessionOperationFacadeLogicImpl.java,v retrieving revision 1.12 retrieving revision 1.13 diff -u -w -r1.12 -r1.13 --- EJB3SessionOperationFacadeLogicImpl.java 14 Jun 2006 05:04:03 -0000 1.12 +++ EJB3SessionOperationFacadeLogicImpl.java 15 Jul 2006 05:10:28 -0000 1.13 @@ -394,7 +394,9 @@ */ protected String handleGetImplementationSignature() { - return this.getImplementationOperationName(StringUtils.capitalize(this.getSignature())); + return (this.getVisibility().equalsIgnoreCase("public") ? + this.getImplementationOperationName(StringUtils.capitalize(this.getSignature())) : + this.getSignature()); } /** 1.20 +9 -0 cartridges/andromda-ejb3/src/changes/changes.xml Index: changes.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/changes/changes.xml,v retrieving revision 1.19 retrieving revision 1.20 diff -u -w -r1.19 -r1.20 --- changes.xml 10 Jul 2006 05:39:26 -0000 1.19 +++ changes.xml 15 Jul 2006 05:10:28 -0000 1.20 @@ -233,6 +233,15 @@ by actors with dependencies on the manageable entity. A corresponding getManageableRolesAllowed is available through EJB3ManageableEntityFacade to retrieve the formatted comma separated list of roles. </action> + <action dev="vancek" type="fix"> + Modelling non-public operations on session beans rendered incorrect method signatures. This fix will + generate correct signatures for all operations, but only public methods are exposed in the remote/local + interfaces and service base class. + </action> + <action dev="vancek" type="update"> + Updated the cartridge.xml to set the outlet for the enumerations template to a new outlet called + user-types. This is defined in namespace.xml and must exist in each project andromda.xml. + </action> </release> </body> </document> \ No newline at end of file |
From: Vance K. <va...@us...> - 2006-07-22 06:24:07
|
User: vancek Date: 06/07/21 23:24:06 Modified: andromda-ejb3/src/changes changes.xml Log: fix JIRA EJB-39 Revision Changes Path 1.21 +3 -0 cartridges/andromda-ejb3/src/changes/changes.xml Index: changes.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/changes/changes.xml,v retrieving revision 1.20 retrieving revision 1.21 diff -u -w -r1.20 -r1.21 --- changes.xml 15 Jul 2006 05:10:28 -0000 1.20 +++ changes.xml 22 Jul 2006 06:24:06 -0000 1.21 @@ -242,6 +242,9 @@ Updated the cartridge.xml to set the outlet for the enumerations template to a new outlet called user-types. This is defined in namespace.xml and must exist in each project andromda.xml. </action> + <action dev="vancek" due-to="sverker" type="update"> + JIRA EJB-39 - Add serialVersionUID to DaoDefaultException. + </action> </release> </body> </document> \ No newline at end of file |
From: Vance K. <va...@us...> - 2006-07-22 06:30:12
|
User: vancek Date: 06/07/21 23:30:10 Modified: andromda-ejb3/src/main/resources/META-INF/andromda namespace.xml andromda-ejb3/src/changes changes.xml Log: set defaultCollectionInterface namespace prop to java.util.TreeSet from java.util.SortedSet. Revision Changes Path 1.28 +1 -1 cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/namespace.xml Index: namespace.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/namespace.xml,v retrieving revision 1.27 retrieving revision 1.28 diff -u -w -r1.27 -r1.28 --- namespace.xml 15 Jul 2006 05:08:59 -0000 1.27 +++ namespace.xml 22 Jul 2006 06:30:10 -0000 1.28 @@ -1022,7 +1022,7 @@ </documentation> </property> <property name="defaultCollectionInterface"> - <default>java.util.SortedSet</default> + <default>java.util.TreeSet</default> <documentation> The default collection interface, this is the interface used with association end accessors and mutators if the 1.22 +5 -0 cartridges/andromda-ejb3/src/changes/changes.xml Index: changes.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/changes/changes.xml,v retrieving revision 1.21 retrieving revision 1.22 diff -u -w -r1.21 -r1.22 --- changes.xml 22 Jul 2006 06:24:06 -0000 1.21 +++ changes.xml 22 Jul 2006 06:30:10 -0000 1.22 @@ -245,6 +245,11 @@ <action dev="vancek" due-to="sverker" type="update"> JIRA EJB-39 - Add serialVersionUID to DaoDefaultException. </action> + <action dev="vancek" due-to="KnisterPeter" type="update"> + Changed defaultCollectionInterface namespace property to java.util.TreeSet from + java.util.SortedSet. This eliminates the need for the @org.hibernate.annotations.Sort annotation + on collection association ends. Aim is to decouple the EJB3 cartridge (with default settings) to Hibernate. + </action> </release> </body> </document> \ No newline at end of file |
From: Vance K. <va...@us...> - 2006-07-24 06:20:52
|
User: vancek Date: 06/07/23 23:20:50 Modified: andromda-ejb3/src/main/resources/META-INF/andromda namespace.xml andromda-ejb3/src/changes changes.xml Log: set defaultCollectionInterface to java.util.Set (from java.util.TreeSet) Revision Changes Path 1.29 +1 -1 cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/namespace.xml Index: namespace.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/namespace.xml,v retrieving revision 1.28 retrieving revision 1.29 diff -u -w -r1.28 -r1.29 --- namespace.xml 22 Jul 2006 06:30:10 -0000 1.28 +++ namespace.xml 24 Jul 2006 06:20:49 -0000 1.29 @@ -1022,7 +1022,7 @@ </documentation> </property> <property name="defaultCollectionInterface"> - <default>java.util.TreeSet</default> + <default>java.util.Set</default> <documentation> The default collection interface, this is the interface used with association end accessors and mutators if the 1.23 +4 -0 cartridges/andromda-ejb3/src/changes/changes.xml Index: changes.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/changes/changes.xml,v retrieving revision 1.22 retrieving revision 1.23 diff -u -w -r1.22 -r1.23 --- changes.xml 22 Jul 2006 06:30:10 -0000 1.22 +++ changes.xml 24 Jul 2006 06:20:50 -0000 1.23 @@ -250,6 +250,10 @@ java.util.SortedSet. This eliminates the need for the @org.hibernate.annotations.Sort annotation on collection association ends. Aim is to decouple the EJB3 cartridge (with default settings) to Hibernate. </action> + <action dev="vancek" type="fix"> + It is invalid to specify an implementation for defaultCollectionInterfac. This must specify an + interface. Changed from java.util.TreeSet to java.util.Set. + </action> </release> </body> </document> \ No newline at end of file |
From: Vance K. <va...@us...> - 2006-07-24 07:10:23
|
User: vancek Date: 06/07/24 00:10:22 Modified: andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades EJB3AssociationEndFacadeLogicImpl.java andromda-ejb3/src/changes changes.xml Log: fix mappedBy property for OneToOne annotation where no aggregation/composition modelled - assume non-navigable end is owning end Revision Changes Path 1.13 +4 -0 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3AssociationEndFacadeLogicImpl.java Index: EJB3AssociationEndFacadeLogicImpl.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3AssociationEndFacadeLogicImpl.java,v retrieving revision 1.12 retrieving revision 1.13 diff -u -w -r1.12 -r1.13 --- EJB3AssociationEndFacadeLogicImpl.java 1 Jul 2006 10:13:00 -0000 1.12 +++ EJB3AssociationEndFacadeLogicImpl.java 24 Jul 2006 07:10:22 -0000 1.13 @@ -383,6 +383,10 @@ { owning = true; } + else if (!this.isNavigable()) + { + owning = true; + } return owning; } 1.24 +5 -0 cartridges/andromda-ejb3/src/changes/changes.xml Index: changes.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/changes/changes.xml,v retrieving revision 1.23 retrieving revision 1.24 diff -u -w -r1.23 -r1.24 --- changes.xml 24 Jul 2006 06:20:50 -0000 1.23 +++ changes.xml 24 Jul 2006 07:10:22 -0000 1.24 @@ -254,6 +254,11 @@ It is invalid to specify an implementation for defaultCollectionInterfac. This must specify an interface. Changed from java.util.TreeSet to java.util.Set. </action> + <action dev="vancek" type="fix"> + Allow the ability to specify unidirectional associations without having to specify an aggregation or + composition end. The non-navigable end is assumed to be the owning end of the association. + This fix renders the mappedBy property for OneToOne annotations on the inverse side of the association. + </action> </release> </body> </document> \ No newline at end of file |
From: Vance K. <va...@us...> - 2006-07-25 06:42:54
|
User: vancek Date: 06/07/24 23:42:52 Modified: andromda-ejb3/src/main/resources/templates/ejb3 SessionBeanBase.vsl Globals.vm EntityEmbeddable.vsl andromda-ejb3/src/main/resources/META-INF/andromda namespace.xml metafacades.xml cartridge.xml andromda-ejb3/src/site/xdoc howto17.xml howto21.xml andromda-ejb3/src/changes changes.xml Log: add persistenceProviderExtensions namespace property to decouple hibernate specific annotations Revision Changes Path 1.8 +6 -2 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBeanBase.vsl Index: SessionBeanBase.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBeanBase.vsl,v retrieving revision 1.7 retrieving revision 1.8 diff -u -w -r1.7 -r1.8 --- SessionBeanBase.vsl 15 Jul 2006 05:10:28 -0000 1.7 +++ SessionBeanBase.vsl 25 Jul 2006 06:42:51 -0000 1.8 @@ -1,3 +1,4 @@ +#parse("templates/ejb3/Globals.vm") // license-header java merge-point // // Attention: Generated code! Do not modify by hand! @@ -36,7 +37,7 @@ @javax.ejb.TransactionAttribute(javax.ejb.TransactionAttributeType.${service.transactionType}) #**##end #end -#if ($stringUtils.isNotBlank($service.securityRealm)) +#if ($service.securityEnabled) #**##if ($service.persistenceContainerJboss) @org.jboss.annotation.security.SecurityDomain("${service.securityRealm}") #**##end @@ -192,7 +193,10 @@ /** * The $attribute.name property */ -#* *##if ($service.seamComponent) +#* *##if ($hibernateExtensionEnabled && $service.seamComponent) +## +## Only enable JBoss Seam components if Hibernate extensions are enabled +## #* *##if ($attribute.seamComponentIn) @org.jboss.seam.annotations.In#if (!$attribute.required)(required = false)#else#**#(create = true)#end 1.3 +2 -1 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/Globals.vm Index: Globals.vm =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/Globals.vm,v retrieving revision 1.2 retrieving revision 1.3 diff -u -w -r1.2 -r1.3 --- Globals.vm 28 Jan 2006 02:44:57 -0000 1.2 +++ Globals.vm 25 Jul 2006 06:42:51 -0000 1.3 @@ -1,2 +1,3 @@ #set ($requiredCheckEnabled = $parameterRequiredCheck.equalsIgnoreCase('true')) #set ($ejbSecurityEnabled = $stringUtils.isNotBlank($securityRealm)) \ No newline at end of file +#set ($hibernateExtensionEnabled = $stringUtils.equalsIgnoreCase('hibernate')) \ No newline at end of file 1.39 +28 -9 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/EntityEmbeddable.vsl Index: EntityEmbeddable.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/EntityEmbeddable.vsl,v retrieving revision 1.38 retrieving revision 1.39 diff -u -w -r1.38 -r1.39 --- EntityEmbeddable.vsl 24 Jul 2006 14:02:02 -0000 1.38 +++ EntityEmbeddable.vsl 25 Jul 2006 06:42:51 -0000 1.39 @@ -1,3 +1,4 @@ +#parse("templates/ejb3/Globals.vm") // license-header java merge-point // // Attention: Generated code! Do not modify by hand! @@ -82,7 +83,7 @@ ## @javax.persistence.DiscriminatorValue("${entity.discriminatorValue}") #**##end -#**##if ($entity.cacheEnabled) +#**##if ($hibernateExtensionEnabled && $entity.cacheEnabled) @org.hibernate.annotations.Cache(usage = org.hibernate.annotations.CacheConcurrencyStrategy.${entity.cacheType}) #**##end ## @@ -476,9 +477,9 @@ #* *##if ($stringUtils.isNotBlank($attribute.enumerationType)) @javax.persistence.Enumerated(javax.persistence.EnumType.${attribute.enumerationType}) #* *##end -#* *##if ($entity.seamComponent) +#* *##if ($hibernateExtensionEnabled && $entity.seamComponent) ## -## If JBoss Seam is enabled, add NotNull and Length annotations +## If JBoss Seam and Hibernate extensions are both enabled, add NotNull and Length annotations ## #* *##if (!$attribute.columnNullable) @org.hibernate.validator.NotNull @@ -603,16 +604,25 @@ #* *##else @javax.persistence.OrderBy #* *##end -#* *##else +#* *##elseif ($hibernateExtensionEnabled) #* *##if ($target.list) +## +## Only add the IndexColumn annotation if Hibernate extensions are enabled +## @org.hibernate.annotations.IndexColumn(name = "${target.collectionIndexName}") #* *##end #* *##end #* *##end -#* *##if ($target.associationCacheEnabled) +#* *##if ($hibernateExtensionEnabled && $target.associationCacheEnabled) +## +## Add Cache annotations if association cache and Hibernate extensions are both enabled +## @org.hibernate.annotations.Cache(usage = org.hibernate.annotations.CacheConcurrencyStrategy.${target.cacheType}) #* *##end -#* *##if ($target.collectionInterfaceSortedSet) +#* *##if ($hibernateExtensionEnabled && $target.collectionInterfaceSortedSet) +## +## Only add the Sort annotation if interface is SortedSet and Hibernate extentions are enabled +## @org.hibernate.annotations.Sort(type = org.hibernate.annotations.SortType.NATURAL) #* *##end #* *##end @@ -730,16 +740,25 @@ #* *##else @javax.persistence.OrderBy #* *##end -#* *##else +#* *##elseif ($hibernateExtensionEnabled) +## +## Only add the IndexColumn annotation if Hibernate extensions are enabled +## #* *##if ($target.list) @org.hibernate.annotations.IndexColumn(name = "${target.collectionIndexName}") #* *##end #* *##end #* *##end -#* *##if ($target.associationCacheEnabled) +#* *##if ($hibernateExtensionEnabled && $target.associationCacheEnabled) +## +## Only add the Cache annotation if assocation cache and Hibernate extensions are both enabled +## @org.hibernate.annotations.Cache(usage = org.hibernate.annotations.CacheConcurrencyStrategy.${target.cacheType}) #* *##end -#* *##if ($target.collectionInterfaceSortedSet) +#* *##if ($hibernateExtensionEnabled && $target.collectionInterfaceSortedSet) +## +## Only add Sort annotation if collection interface is SortedSet and Hibernate extensions are enabled +## @org.hibernate.annotations.Sort(type = org.hibernate.annotations.SortType.NATURAL) #* *##end #* *##end 1.30 +20 -0 cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/namespace.xml Index: namespace.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/namespace.xml,v retrieving revision 1.29 retrieving revision 1.30 diff -u -w -r1.29 -r1.30 --- namespace.xml 24 Jul 2006 06:20:49 -0000 1.29 +++ namespace.xml 25 Jul 2006 06:42:51 -0000 1.30 @@ -973,6 +973,26 @@ </property> </propertyGroup> <propertyGroup name="Other Properties"> + <property name="persistenceProviderExtensions"> + <default>none</default> + <documentation> + Determines whether the default persistence provider + extensions such as annotations should also be rendered. + By default, this is disabled. + To enable caching: + this must be set to <b>hibernate</b> such that + the Hibernate caching annotations are rendered. + To enable JBoss Seam: + this must be set to <b>hibernate</b> such that + the hibernate validator annotations are + rendered. + Possible values are: + <ul> + <li>none</li> + <li>hibernate</li> + </ul> + </documentation> + </property> <property name="persistenceContainerName"> <default>jboss</default> <documentation> 1.26 +1 -0 cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/metafacades.xml Index: metafacades.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/metafacades.xml,v retrieving revision 1.25 retrieving revision 1.26 diff -u -w -r1.25 -r1.26 --- metafacades.xml 10 Jul 2006 05:29:36 -0000 1.25 +++ metafacades.xml 25 Jul 2006 06:42:51 -0000 1.26 @@ -38,6 +38,7 @@ <property reference="entityDefaultTemporalType"/> <property reference="serviceViewType"/> <property reference="entityGenericFinders"/> + <property reference="persistenceProviderExtensions"/> <property reference="persistenceContainerName"/> <property reference="persistenceContextUnitName"/> <property reference="securityRealm"/> 1.31 +1 -0 cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/cartridge.xml Index: cartridge.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/cartridge.xml,v retrieving revision 1.30 retrieving revision 1.31 diff -u -w -r1.30 -r1.31 --- cartridge.xml 24 Jul 2006 14:04:57 -0000 1.30 +++ cartridge.xml 25 Jul 2006 06:42:51 -0000 1.31 @@ -34,6 +34,7 @@ <property reference="serviceLocatorName"/> <property reference="manageableServiceLocatorName"/> <property reference="ejb3TypesPackage"/> + <property reference="persistenceProviderExtensions"/> <property reference="persistenceContextUnitName"/> <property reference="persistenceContainerName"/> <property reference="parameterRequiredCheck"/> 1.6 +5 -0 cartridges/andromda-ejb3/src/site/xdoc/howto17.xml Index: howto17.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/site/xdoc/howto17.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -u -w -r1.5 -r1.6 --- howto17.xml 28 Jun 2006 04:54:08 -0000 1.5 +++ howto17.xml 25 Jul 2006 06:42:51 -0000 1.6 @@ -90,6 +90,11 @@ <li class="gen"><p><a class="changed" href="src/org/andromda/test/howto17/a/andromda.xml"><code>andromda.xml</code></a></p></li> </ul> </p> + <p class="highlight"> + Remember: You must set the + <a href="namespace.html#persistenceProviderExtensions">persistenceProviderExtensions</a> + namespace property such that Hibernate cache specific annotations are generated. + </p> <p> The following sections will show you how to enable and configure caching and clustering. </p> 1.2 +6 -2 cartridges/andromda-ejb3/src/site/xdoc/howto21.xml Index: howto21.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/site/xdoc/howto21.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- howto21.xml 1 Jul 2006 03:07:39 -0000 1.1 +++ howto21.xml 25 Jul 2006 06:42:51 -0000 1.2 @@ -11,8 +11,12 @@ This latest addition is work in progress. </p> <p> - Here is the initial roadmap for JBoss Seam integration from the forum - + Here is the initial roadmap for JBoss Seam integration from the forum. + </p> + <p class="highlight"> + Remember: You must set the + <a href="namespace.html#persistenceProviderExtensions">persistenceProviderExtensions</a> + namespace property such that Hibernate validator specific annotations are generated. </p> <a name="Seam_Roadmap"/> <subsection name="Seam Roadmap"> 1.27 +5 -0 cartridges/andromda-ejb3/src/changes/changes.xml Index: changes.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/changes/changes.xml,v retrieving revision 1.26 retrieving revision 1.27 diff -u -w -r1.26 -r1.27 --- changes.xml 24 Jul 2006 14:04:57 -0000 1.26 +++ changes.xml 25 Jul 2006 06:42:51 -0000 1.27 @@ -271,6 +271,11 @@ Generate JBoss MQ destinations service XML descriptor when hot deployed under JBoss, creates the Queue/Topics. </action> + <action dev="vancek" due-to="KnisterPeter" type="update"> + Added new namespace property persistenceProviderExtensions. Default value is none. Currently, ony + hibernate extensions are supported. If set to hibernate, then hibernate specifc annotations are + rendered in appropriate locations based on the model. + </action> </release> </body> </document> \ No newline at end of file |
From: Vance K. <va...@us...> - 2006-07-29 09:46:36
|
User: vancek Date: 06/07/29 02:46:29 Modified: andromda-ejb3/src/site/xdoc installation.xml andromda-ejb3/src/changes changes.xml Log: update installation guide Revision Changes Path 1.4 +29 -8 cartridges/andromda-ejb3/src/site/xdoc/installation.xml Index: installation.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/site/xdoc/installation.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -u -w -r1.3 -r1.4 --- installation.xml 5 Jul 2006 02:46:27 -0000 1.3 +++ installation.xml 29 Jul 2006 09:46:29 -0000 1.4 @@ -26,25 +26,46 @@ <p> You need to have an instance of AndroMDA 3.2. At the time of writing this, 3.2 RC1 was released but the latest 3.2-SNAPSHOT from CVS contains updates to the project generator - and site plugin, and is more suitable to use with the EJB3 cartridge. Follow the anonymous + and site plugin; this is more suitable to use with the EJB3 cartridge. Follow the anonymous CVS access at <a href="http://sourceforge.net/cvs/?group_id=73047">AndroMDA project</a> to - checkout the latest <b>andromda-all</b>. + checkout and build the latest <b>andromda-all</b> source. </p> </subsection> <a name="Getting_the_Cartridge"/> <subsection name="Getting the Cartridge"> <p> - The first thing you need to do is checkout the latest EJB3 cartridge from - CVS. Follow the anonymous CVS access at + Once you have met the requirements above, checkout the latest EJB3 cartridge from + CVS HEAD. + You have two options: + <ul> + <li> + <p> + Follow the anonymous CVS access at <a href="http://sourceforge.net/cvs/?group_id=154568">andromdaplugins project</a> - on SourceForge to checkout the latest <b>andromda-ejb</b> module. + on SourceForge to checkout the latest <b>andromda-plugins</b> module from + <code>HEAD</code>. + </p> + </li> + <li> + <p> + If you are using an IDE like Eclipse, open your CVS repository exploring perspective, + create a new repository with connection type (pserver), username (anonymous), + password(<i>blank</i>) host (andromdaplugins.cvs.sourceforge.net) and repository path + (/cvsroot/andromdaplugins). Once connected, expand HEAD and check out + <code>andromda-plugins</code>. + </p> + </li> + </ul> + Note that this will check out all cartridges and plugins + which are not relevant to the EJB3 cartridge, but will ease the your build process. </p> </subsection> <a name="Building_the_Cartridge"/> <subsection name="Building the Cartridge"> <p> - Once you have checked out the andromda-ejb3 cartridge, you can simply build it by - going to the root folder of the project and running <i>mvn</i>. + Once you have checked out the <code>andromda-plugins</code> project, you can simply build + the <b>andromda-ejb3</b> catridge in <code>andromda-plugins/cartridges/andromda-ejb3</code> + by running <i>mvn</i> in the latter location. </p> </subsection> <a name="Building_Reports"/> 1.28 +3 -0 cartridges/andromda-ejb3/src/changes/changes.xml Index: changes.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/changes/changes.xml,v retrieving revision 1.27 retrieving revision 1.28 diff -u -w -r1.27 -r1.28 --- changes.xml 25 Jul 2006 06:42:51 -0000 1.27 +++ changes.xml 29 Jul 2006 09:46:29 -0000 1.28 @@ -276,6 +276,9 @@ hibernate extensions are supported. If set to hibernate, then hibernate specifc annotations are rendered in appropriate locations based on the model. </action> + <action dev="vancek" type="update"> + Updated installation howto to give more accurate directions on getting and building the EJB3 cartridge. + </action> </release> </body> </document> \ No newline at end of file |
From: Vance K. <va...@us...> - 2006-08-11 05:49:49
|
User: vancek Date: 06/08/10 22:49:48 Modified: andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades EJB3ManageableEntityFacadeLogicImpl.java EJB3ManageableEntityAttributeFacadeLogicImpl.java EJB3SessionOperationFacadeLogicImpl.java EJB3AssociationFacadeLogicImpl.java EJB3ManageableEntityAssociationEndFacadeLogicImpl.java EJB3InterceptorFacadeLogicImpl.java EJB3MessageDrivenFacadeLogicImpl.java EJB3OperationFacadeLogicImpl.java EJB3EntityFacadeLogicImpl.java EJB3FinderMethodFacadeLogicImpl.java EJB3EntityAttributeFacadeLogicImpl.java EJB3SessionFacadeLogicImpl.java EJB3MetafacadeUtils.java andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3 EJB3ScriptHelper.java andromda-ejb3 pom.xml andromda-ejb3/src/changes changes.xml Log: EJB-41 - clean unused import and deprecated methods Revision Changes Path 1.6 +0 -10 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3ManageableEntityFacadeLogicImpl.java Index: EJB3ManageableEntityFacadeLogicImpl.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3ManageableEntityFacadeLogicImpl.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -w -r1.5 -r1.6 --- EJB3ManageableEntityFacadeLogicImpl.java 10 Jul 2006 05:39:26 -0000 1.5 +++ EJB3ManageableEntityFacadeLogicImpl.java 11 Aug 2006 05:49:46 -0000 1.6 @@ -1,23 +1,13 @@ package org.andromda.cartridges.ejb3.metafacades; import java.text.MessageFormat; -import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; -import java.util.List; import org.andromda.cartridges.ejb3.EJB3Globals; -import org.andromda.cartridges.ejb3.EJB3Profile; -import org.andromda.metafacades.uml.AssociationEndFacade; import org.andromda.metafacades.uml.AttributeFacade; -import org.andromda.metafacades.uml.ClassifierFacade; -import org.andromda.metafacades.uml.Entity; import org.andromda.metafacades.uml.EntityAttribute; -import org.andromda.metafacades.uml.ManageableEntityAttribute; -import org.andromda.metafacades.uml.Role; import org.andromda.metafacades.uml.UMLProfile; -import org.apache.commons.collections.CollectionUtils; -import org.apache.commons.collections.Predicate; import org.apache.commons.lang.ObjectUtils; import org.apache.commons.lang.StringUtils; 1.6 +0 -5 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3ManageableEntityAttributeFacadeLogicImpl.java Index: EJB3ManageableEntityAttributeFacadeLogicImpl.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3ManageableEntityAttributeFacadeLogicImpl.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -w -r1.5 -r1.6 --- EJB3ManageableEntityAttributeFacadeLogicImpl.java 10 Jul 2006 05:29:36 -0000 1.5 +++ EJB3ManageableEntityAttributeFacadeLogicImpl.java 11 Aug 2006 05:49:46 -0000 1.6 @@ -1,10 +1,5 @@ package org.andromda.cartridges.ejb3.metafacades; -import org.andromda.cartridges.ejb3.EJB3Globals; -import org.andromda.cartridges.ejb3.EJB3Profile; -import org.apache.commons.lang.StringUtils; - - /** * MetafacadeLogic implementation for org.andromda.cartridges.ejb3.metafacades.EJB3ManageableEntityAttributeFacade. * 1.14 +0 -2 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3SessionOperationFacadeLogicImpl.java Index: EJB3SessionOperationFacadeLogicImpl.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3SessionOperationFacadeLogicImpl.java,v retrieving revision 1.13 retrieving revision 1.14 diff -u -w -r1.13 -r1.14 --- EJB3SessionOperationFacadeLogicImpl.java 15 Jul 2006 05:10:28 -0000 1.13 +++ EJB3SessionOperationFacadeLogicImpl.java 11 Aug 2006 05:49:46 -0000 1.14 @@ -1,7 +1,6 @@ package org.andromda.cartridges.ejb3.metafacades; import java.text.MessageFormat; -import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.LinkedHashSet; @@ -11,7 +10,6 @@ import org.andromda.metafacades.uml.DependencyFacade; import org.andromda.metafacades.uml.ModelElementFacade; import org.andromda.metafacades.uml.Role; -import org.andromda.metafacades.uml.Service; import org.apache.commons.collections.Closure; import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.Predicate; 1.3 +0 -3 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3AssociationFacadeLogicImpl.java Index: EJB3AssociationFacadeLogicImpl.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3AssociationFacadeLogicImpl.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -w -r1.2 -r1.3 --- EJB3AssociationFacadeLogicImpl.java 6 Jan 2006 13:55:19 -0000 1.2 +++ EJB3AssociationFacadeLogicImpl.java 11 Aug 2006 05:49:46 -0000 1.3 @@ -1,8 +1,5 @@ package org.andromda.cartridges.ejb3.metafacades; -import org.andromda.cartridges.ejb3.EJB3Profile; - - /** * MetafacadeLogic implementation for org.andromda.cartridges.ejb3.metafacades.EJB3AssociationFacade. * 1.4 +0 -12 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3ManageableEntityAssociationEndFacadeLogicImpl.java Index: EJB3ManageableEntityAssociationEndFacadeLogicImpl.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3ManageableEntityAssociationEndFacadeLogicImpl.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -w -r1.3 -r1.4 --- EJB3ManageableEntityAssociationEndFacadeLogicImpl.java 26 Jun 2006 06:53:32 -0000 1.3 +++ EJB3ManageableEntityAssociationEndFacadeLogicImpl.java 11 Aug 2006 05:49:46 -0000 1.4 @@ -1,17 +1,5 @@ package org.andromda.cartridges.ejb3.metafacades; -import java.text.MessageFormat; - -import org.andromda.cartridges.ejb3.EJB3Globals; -import org.andromda.metafacades.uml.ClassifierFacade; -import org.andromda.metafacades.uml.TypeMappings; -import org.andromda.metafacades.uml.UMLMetafacadeProperties; -import org.andromda.metafacades.uml.UMLMetafacadeUtils; -import org.andromda.metafacades.uml.UMLProfile; -import org.apache.commons.lang.ObjectUtils; -import org.apache.commons.lang.StringUtils; - - /** * MetafacadeLogic implementation for org.andromda.cartridges.ejb3.metafacades.EJB3ManageableEntityAssociationEndFacade. * 1.4 +0 -2 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3InterceptorFacadeLogicImpl.java Index: EJB3InterceptorFacadeLogicImpl.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3InterceptorFacadeLogicImpl.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -w -r1.3 -r1.4 --- EJB3InterceptorFacadeLogicImpl.java 16 Mar 2006 02:16:31 -0000 1.3 +++ EJB3InterceptorFacadeLogicImpl.java 11 Aug 2006 05:49:46 -0000 1.4 @@ -1,9 +1,7 @@ package org.andromda.cartridges.ejb3.metafacades; import java.text.MessageFormat; -import java.util.ArrayList; import java.util.Collection; -import java.util.Iterator; import java.util.LinkedHashSet; import org.andromda.cartridges.ejb3.EJB3Profile; 1.8 +0 -1 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3MessageDrivenFacadeLogicImpl.java Index: EJB3MessageDrivenFacadeLogicImpl.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3MessageDrivenFacadeLogicImpl.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -w -r1.7 -r1.8 --- EJB3MessageDrivenFacadeLogicImpl.java 3 Jun 2006 15:36:48 -0000 1.7 +++ EJB3MessageDrivenFacadeLogicImpl.java 11 Aug 2006 05:49:46 -0000 1.8 @@ -1,7 +1,6 @@ package org.andromda.cartridges.ejb3.metafacades; import java.text.MessageFormat; -import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.LinkedHashSet; 1.6 +0 -1 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3OperationFacadeLogicImpl.java Index: EJB3OperationFacadeLogicImpl.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3OperationFacadeLogicImpl.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -w -r1.5 -r1.6 --- EJB3OperationFacadeLogicImpl.java 30 Apr 2006 01:58:53 -0000 1.5 +++ EJB3OperationFacadeLogicImpl.java 11 Aug 2006 05:49:46 -0000 1.6 @@ -4,7 +4,6 @@ import org.andromda.cartridges.ejb3.EJB3Globals; import org.andromda.cartridges.ejb3.EJB3Profile; -import org.apache.commons.lang.ObjectUtils; import org.apache.commons.lang.StringUtils; 1.25 +7 -3 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3EntityFacadeLogicImpl.java Index: EJB3EntityFacadeLogicImpl.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3EntityFacadeLogicImpl.java,v retrieving revision 1.24 retrieving revision 1.25 diff -u -w -r1.24 -r1.25 --- EJB3EntityFacadeLogicImpl.java 14 Jun 2006 04:55:21 -0000 1.24 +++ EJB3EntityFacadeLogicImpl.java 11 Aug 2006 05:49:46 -0000 1.25 @@ -736,7 +736,7 @@ (String)this.findTaggedValue(EJB3Profile.TAGGEDVALUE_PERSISTENCE_DISCRIMINATOR_COLUMN_LENGTH); if (StringUtils.isNotBlank(lengthAsStr)) { - length = NumberUtils.stringToInt(lengthAsStr); + length = NumberUtils.toInt(lengthAsStr); } return length; } @@ -1305,6 +1305,8 @@ } return new FilteredCollection(sourceDependencies) { + private static final long serialVersionUID = -8193885902084039620L; + public boolean evaluate(Object object) { boolean valid = false; @@ -1391,6 +1393,8 @@ { return new FilteredCollection(this.getAttributes(follow, withIdentifiers)) { + private static final long serialVersionUID = -8511475954374453779L; + public boolean evaluate(Object object) { return !((AttributeFacade)object).isStatic(); 1.11 +0 -2 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3FinderMethodFacadeLogicImpl.java Index: EJB3FinderMethodFacadeLogicImpl.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3FinderMethodFacadeLogicImpl.java,v retrieving revision 1.10 retrieving revision 1.11 diff -u -w -r1.10 -r1.11 --- EJB3FinderMethodFacadeLogicImpl.java 29 May 2006 01:44:27 -0000 1.10 +++ EJB3FinderMethodFacadeLogicImpl.java 11 Aug 2006 05:49:46 -0000 1.11 @@ -3,10 +3,8 @@ import java.util.Collection; import java.util.Iterator; -import org.andromda.cartridges.ejb3.EJB3Globals; import org.andromda.cartridges.ejb3.EJB3Profile; import org.andromda.metafacades.uml.ModelElementFacade; -import org.andromda.metafacades.uml.ParameterFacade; import org.apache.commons.lang.BooleanUtils; import org.apache.commons.lang.StringUtils; 1.17 +0 -1 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3EntityAttributeFacadeLogicImpl.java Index: EJB3EntityAttributeFacadeLogicImpl.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3EntityAttributeFacadeLogicImpl.java,v retrieving revision 1.16 retrieving revision 1.17 diff -u -w -r1.16 -r1.17 --- EJB3EntityAttributeFacadeLogicImpl.java 10 Jul 2006 05:29:36 -0000 1.16 +++ EJB3EntityAttributeFacadeLogicImpl.java 11 Aug 2006 05:49:46 -0000 1.17 @@ -1,6 +1,5 @@ package org.andromda.cartridges.ejb3.metafacades; -import java.util.Collection; import java.util.Iterator; import org.andromda.cartridges.ejb3.EJB3Globals; 1.18 +0 -2 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3SessionFacadeLogicImpl.java Index: EJB3SessionFacadeLogicImpl.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3SessionFacadeLogicImpl.java,v retrieving revision 1.17 retrieving revision 1.18 diff -u -w -r1.17 -r1.18 --- EJB3SessionFacadeLogicImpl.java 14 Jun 2006 05:04:03 -0000 1.17 +++ EJB3SessionFacadeLogicImpl.java 11 Aug 2006 05:49:46 -0000 1.18 @@ -1,14 +1,12 @@ package org.andromda.cartridges.ejb3.metafacades; import java.text.MessageFormat; -import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.LinkedHashSet; import org.andromda.cartridges.ejb3.EJB3Globals; import org.andromda.cartridges.ejb3.EJB3Profile; -import org.andromda.cartridges.ejb3.metafacades.EJB3OperationFacade; import org.andromda.metafacades.uml.DependencyFacade; import org.andromda.metafacades.uml.ModelElementFacade; import org.andromda.metafacades.uml.OperationFacade; 1.7 +12 -26 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3MetafacadeUtils.java Index: EJB3MetafacadeUtils.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3MetafacadeUtils.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -w -r1.6 -r1.7 --- EJB3MetafacadeUtils.java 14 Jun 2006 05:01:13 -0000 1.6 +++ EJB3MetafacadeUtils.java 11 Aug 2006 05:49:46 -0000 1.7 @@ -5,13 +5,11 @@ import org.andromda.core.common.ExceptionUtils; import org.andromda.metafacades.uml.AttributeFacade; import org.andromda.metafacades.uml.ClassifierFacade; -import org.andromda.metafacades.uml.DependencyFacade; import org.andromda.metafacades.uml.ModelElementFacade; import org.andromda.metafacades.uml.OperationFacade; import org.andromda.metafacades.uml.UMLProfile; import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.Predicate; -import org.apache.commons.collections.Transformer; import org.apache.commons.lang.StringUtils; import java.util.ArrayList; @@ -39,8 +37,7 @@ ClassifierFacade classifier, boolean follow) { - final String methodName = "EJBMetafacadeUtils.getCreateMethods"; - ExceptionUtils.checkNull(methodName, "classifer", classifier); + ExceptionUtils.checkNull("classifer", classifier); Collection retval = new ArrayList(); ClassifierFacade entity = classifier; do @@ -71,8 +68,7 @@ */ static String getHomeInterfaceName(ClassifierFacade classifier) { - final String methodName = "EJBMetafacadeUtils.getHomeInterfaceName"; - ExceptionUtils.checkNull(methodName, "classifer", classifier); + ExceptionUtils.checkNull("classifer", classifier); String homeInterfaceName; if (classifier.hasStereotype(UMLProfile.STEREOTYPE_ENTITY)) { @@ -101,8 +97,7 @@ ClassifierFacade classifier, String defaultViewType) { - final String methodName = "EJBMetafacadeUtils.getViewType"; - ExceptionUtils.checkNull(methodName, "classifer", classifier); + ExceptionUtils.checkNull("classifer", classifier); String viewType = (String)classifier.findTaggedValue(EJB3Profile.TAGGEDVALUE_EJB_VIEWTYPE); if (StringUtils.isEmpty(viewType)) { @@ -141,8 +136,7 @@ */ static List getInheritedInstanceAttributes(ClassifierFacade classifier) { - final String methodName = "EJBMetafacadeUtils.getInheritedInstanceAttributes"; - ExceptionUtils.checkNull(methodName, "classifer", classifier); + ExceptionUtils.checkNull("classifer", classifier); ClassifierFacade current = (ClassifierFacade)classifier.getGeneralization(); if (current == null) { @@ -166,8 +160,7 @@ */ static List getAllInstanceAttributes(ClassifierFacade classifier) { - final String methodName = "EJBMetafacadeUtils.getAllInstanceAttributes"; - ExceptionUtils.checkNull(methodName, "classifer", classifier); + ExceptionUtils.checkNull("classifer", classifier); List retval = getInheritedInstanceAttributes(classifier); retval.addAll(classifier.getInstanceAttributes()); return retval; @@ -187,8 +180,7 @@ ClassifierFacade classifier, boolean follow) { - final String methodName = "EJBMetafacadeUtils.getEnvironmentEntries"; - ExceptionUtils.checkNull(methodName, "classifer", classifier); + ExceptionUtils.checkNull("classifer", classifier); Collection attributes = classifier.getStaticAttributes(); @@ -221,8 +213,7 @@ */ static String getTransactionType(ClassifierFacade classifier, String defaultTransactionType) { - final String methodName = "EJBMetafacadeUtils.getTransactionType"; - ExceptionUtils.checkNull(methodName, "classifer", classifier); + ExceptionUtils.checkNull("classifer", classifier); String transactionType = (String)classifier.findTaggedValue(EJB3Profile.TAGGEDVALUE_EJB_TRANSACTION_TYPE); if (StringUtils.isNotBlank(transactionType)) @@ -246,8 +237,7 @@ */ static String convertTransactionType(String transType) { - final String methodName = "EJBMetafacadeUtils.convertTransactionType"; - ExceptionUtils.checkNull(methodName, "transType", transType); + ExceptionUtils.checkNull("transType", transType); String type = null; if (StringUtils.equalsIgnoreCase(transType, EJB3Globals.TRANSACTION_TYPE_MANDATORY)) @@ -292,8 +282,7 @@ ClassifierFacade classifier, boolean follow) { - final String methodName = "EJBMetafacadeUtils.getConstants"; - ExceptionUtils.checkNull(methodName, "classifer", classifier); + ExceptionUtils.checkNull("classifer", classifier); Collection attributes = classifier.getStaticAttributes(); @@ -325,8 +314,7 @@ */ static boolean allowSyntheticCreateMethod(ClassifierFacade classifier) { - final String methodName = "EJBMetafacadeUtils.allowSyntheticCreateMethod"; - ExceptionUtils.checkNull(methodName, "classifer", classifier); + ExceptionUtils.checkNull("classifer", classifier); return !classifier.isAbstract() && classifier.findTaggedValue( EJB3Profile.TAGGEDVALUE_EJB_NO_SYNTHETIC_CREATE_METHOD) == null; } @@ -383,8 +371,7 @@ */ static String getSeamComponentScopeType(ClassifierFacade classifier, boolean stateless) { - final String methodName = "EJBMetafacadeUtils.getSeamComponentScopeType"; - ExceptionUtils.checkNull(methodName, "classifer", classifier); + ExceptionUtils.checkNull("classifer", classifier); return (String)classifier.findTaggedValue(EJB3Profile.TAGGEDVALUE_SEAM_SCOPE_TYPE); } @@ -397,8 +384,7 @@ */ static String getSeamComponentName(ClassifierFacade classifier) { - final String methodName = "EJBMetafacadeUtils.getSeamComponentName"; - ExceptionUtils.checkNull(methodName, "classifer", classifier); + ExceptionUtils.checkNull("classifer", classifier); String componentName = (String)classifier.findTaggedValue(EJB3Profile.TAGGEDVALUE_SEAM_COMPONENT_NAME); if (StringUtils.isBlank(componentName)) { 1.9 +0 -3 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/EJB3ScriptHelper.java Index: EJB3ScriptHelper.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/EJB3ScriptHelper.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -w -r1.8 -r1.9 --- EJB3ScriptHelper.java 11 Apr 2006 16:09:44 -0000 1.8 +++ EJB3ScriptHelper.java 11 Aug 2006 05:49:47 -0000 1.9 @@ -1,9 +1,6 @@ package org.andromda.cartridges.ejb3; import org.andromda.cartridges.ejb3.metafacades.EJB3EntityAttributeFacade; -import org.andromda.cartridges.ejb3.metafacades.EJB3EntityFacade; -import org.andromda.cartridges.ejb3.metafacades.EJB3SessionFacade; -import org.andromda.metafacades.uml.AttributeFacade; import org.andromda.metafacades.uml.ModelElementFacade; import org.apache.commons.lang.StringUtils; 1.8 +2 -0 cartridges/andromda-ejb3/pom.xml Index: pom.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/pom.xml,v retrieving revision 1.7 retrieving revision 1.8 diff -u -w -r1.7 -r1.8 --- pom.xml 26 Jun 2006 14:40:34 -0000 1.7 +++ pom.xml 11 Aug 2006 05:49:48 -0000 1.8 @@ -125,6 +125,7 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> </plugin> + <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-changes-plugin</artifactId> @@ -155,6 +156,7 @@ </reportSet> </reportSets> </plugin> + --> </plugins> </reporting> <properties> 1.29 +3 -0 cartridges/andromda-ejb3/src/changes/changes.xml Index: changes.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/changes/changes.xml,v retrieving revision 1.28 retrieving revision 1.29 diff -u -w -r1.28 -r1.29 --- changes.xml 29 Jul 2006 09:46:29 -0000 1.28 +++ changes.xml 11 Aug 2006 05:49:48 -0000 1.29 @@ -279,6 +279,9 @@ <action dev="vancek" type="update"> Updated installation howto to give more accurate directions on getting and building the EJB3 cartridge. </action> + <action dev="vancek" due-to="sverker" type="update"> + JIRA EJB-41 - Cleaned unused imports and some calls to deprecated methods changed to their replacements. + </action> </release> </body> </document> \ No newline at end of file |
From: Vance K. <va...@us...> - 2006-08-24 08:55:18
|
User: vancek Date: 06/08/24 01:54:32 Modified: andromda-ejb3/src/main/resources/META-INF/andromda namespace.xml metafacades.xml andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades EJB3AssociationEndFacadeLogicImpl.java andromda-ejb3/src/changes changes.xml Log: EJB-43 fix issues with the default association cascade Revision Changes Path 1.31 +3 -1 cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/namespace.xml Index: namespace.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/namespace.xml,v retrieving revision 1.30 retrieving revision 1.31 diff -u -w -r1.30 -r1.31 --- namespace.xml 25 Jul 2006 06:42:51 -0000 1.30 +++ namespace.xml 24 Aug 2006 08:54:31 -0000 1.31 @@ -620,6 +620,8 @@ <li>REFRESH</li> <li>NONE if one does not exist</li> </ul> + It is possible to comma separate multiple + cascade properties. </documentation> </property> <property name="entityCompositeCascade" required="false"> @@ -648,7 +650,7 @@ </ul> </documentation> </property> - <property name="entityAggergationCascade" required="false"> + <property name="entityAggregationCascade" required="false"> <documentation> Indicates how a UML aggreation should be interpreted to determine cascadable operations that are 1.27 +1 -1 cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/metafacades.xml Index: metafacades.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/metafacades.xml,v retrieving revision 1.26 retrieving revision 1.27 diff -u -w -r1.26 -r1.27 --- metafacades.xml 25 Jul 2006 06:42:51 -0000 1.26 +++ metafacades.xml 24 Aug 2006 08:54:31 -0000 1.27 @@ -123,7 +123,7 @@ <property name="type.eJB3EntityFacadeMetaType"/> </mapping> <property reference="entityCompositeCascade"/> - <property reference="entityAggergationCascade"/> + <property reference="entityAggregationCascade"/> <property reference="associationCollectionType"/> <property reference="specificCollectionInterfaces"/> <property reference="defaultCollectionInterface"/> 1.15 +60 -30 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3AssociationEndFacadeLogicImpl.java Index: EJB3AssociationEndFacadeLogicImpl.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3AssociationEndFacadeLogicImpl.java,v retrieving revision 1.14 retrieving revision 1.15 diff -u -w -r1.14 -r1.15 --- EJB3AssociationEndFacadeLogicImpl.java 24 Jul 2006 14:02:01 -0000 1.14 +++ EJB3AssociationEndFacadeLogicImpl.java 24 Aug 2006 08:54:31 -0000 1.15 @@ -40,7 +40,7 @@ /** * The default aggregation association cascade property */ - private static final String ENTITY_DEFAULT_AGGREGATION_CASCADE = "entityAggergationCascade"; + private static final String ENTITY_DEFAULT_AGGREGATION_CASCADE = "entityAggregationCascade"; /** * The namespace property storing default collection type for associations @@ -461,6 +461,39 @@ } /** + * Resolves a comma separated list of cascade types from andromda.xml + + * @param cascadesString + * @return fully qualified cascade type sequence + */ + private String getFullyQualifiedCascadeTypeList(String cascadesString) + { + StringBuffer buf = null; + if (StringUtils.isNotBlank(cascadesString)) + { + String[] ct = cascadesString.split(","); + for (int i = 0; i < ct.length; i++) + { + final String value = ct[i].trim(); + if (StringUtils.isNotBlank(value)) + { + if (buf == null) + { + buf = new StringBuffer(); + } + else + { + buf.append(", "); + } + + buf.append(cascadeTable.get(value)); + } + } + } + return buf == null ? null : buf.toString(); + } + + /** * @see org.andromda.cartridges.ejb3.metafacades.EJB3AssociationEndFacadeLogic#handleGetCascadeType() */ protected String handleGetCascadeType() @@ -488,12 +521,10 @@ } cascade = buf.toString(); } - else if (this.isChild()) + else if ((this.getOtherEnd() != null) && + (this.getOtherEnd().isAggregation() || this.getOtherEnd().isComposition())) { cascade = (String)cascadeTable.get(ENTITY_CASCADE_REMOVE); - - if (this.getOtherEnd() != null) - { if (this.getOtherEnd().isComposition()) { if (StringUtils.isBlank(this.getCompositionCascadeType())) @@ -502,13 +533,13 @@ { EJB3EntityFacade entity = (EJB3EntityFacade)this.getType(); cascade = (entity.getDefaultCascadeType().equalsIgnoreCase(ENTITY_CASCADE_NONE) ? - null : (String)cascadeTable.get(entity.getDefaultCascadeType())); + null : this.getFullyQualifiedCascadeTypeList(entity.getDefaultCascadeType())); } } else { cascade = (this.getCompositionCascadeType().equalsIgnoreCase(ENTITY_CASCADE_NONE) ? - null : (String)cascadeTable.get(this.getCompositionCascadeType())); + null : this.getFullyQualifiedCascadeTypeList(this.getCompositionCascadeType())); } } else if (this.getOtherEnd().isAggregation()) @@ -519,14 +550,13 @@ { EJB3EntityFacade entity = (EJB3EntityFacade)this.getType(); cascade = (entity.getDefaultCascadeType().equalsIgnoreCase(ENTITY_CASCADE_NONE) ? - null : (String)cascadeTable.get(entity.getDefaultCascadeType())); + null : this.getFullyQualifiedCascadeTypeList(entity.getDefaultCascadeType())); } } else { cascade = (this.getAggregationCascadeType().equalsIgnoreCase(ENTITY_CASCADE_NONE) ? - null : (String)cascadeTable.get(this.getAggregationCascadeType())); - } + null : this.getFullyQualifiedCascadeTypeList(this.getAggregationCascadeType())); } } } 1.31 +5 -0 cartridges/andromda-ejb3/src/changes/changes.xml Index: changes.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/changes/changes.xml,v retrieving revision 1.30 retrieving revision 1.31 diff -u -w -r1.30 -r1.31 --- changes.xml 11 Aug 2006 15:11:38 -0000 1.30 +++ changes.xml 24 Aug 2006 08:54:32 -0000 1.31 @@ -288,6 +288,11 @@ for the session to <b>Bean</b> instead of <b>Container</b>. This does not affect manageable entity session POJOs as they remain container managed transaction demarcation. </action> + <action dev="vancek" due-to="Bertl" type="fix"> + JIRA EJB-43 - Fix issues with the default setup of association cascade properties, in particular adding + support for multiple cascade options for the default cascade property on entities. Fix the naming + issue with entityAggregationCascade. + </action> </release> </body> </document> \ No newline at end of file |
From: Vance K. <va...@us...> - 2006-10-06 06:50:01
|
User: vancek Date: 06/10/05 23:49:58 Modified: andromda-ejb3/src/site site.xml andromda-ejb3/src/changes changes.xml Added: andromda-ejb3/src/site/axdoc samples.xml Log: add site docs for demo-ejb3 sample Revision Changes Path 1.1 cartridges/andromda-ejb3/src/site/axdoc/samples.xml Index: samples.xml =================================================================== <?xml version="1.0" encoding="iso-8859-1"?> <document> <properties> <author email="va...@us...">Vance Karimi</author> <title>AndroMDA - EJB3 - Samples</title> </properties> <body> <section name="Samples"> <p> To help understand the EJB3 cartridge, the following sample applications have been provided. </p> <p> <ul> <li><a href="samples.html#Samples_Demo_EJB3">Demo EJB3</a></li> </ul> </p> <a name="Samples_Demo_EJB3"/> <subsection name="Demo EJB3 Sample"> <p> This sample application is located in the <code>samples/demo-ejb3</code> directory of the <code>andromda-plugins</code> project on SourceForge.net. </p> <p> The project has the same structure as described in <a href="http://galaxy.andromda.org/docs/samples.html">AndroMDA Samples</a>. </p> <p> This sample demo illustrates the use of the EJB3 cartridge (EJB 3.0 functionality), manageable entities and web services. It is built for the MySQL database engine using JBoss 4.0.4 GA or newer. </p> <p> Simply build the demo by executing <code>mvn</code> in the root of the project directory. </p> <p> Once you have build the sample, you need to create the database called <code>demo-ejb3</code>. You can then deploy the following to JBoss. <ul> <li>demo-ejb3/app/target/demo-ejb3-ds.xml</li> <li>demo-ejb3/app/target/demo-ejb3-mq-destinations-service.xml</li> <li>demo-ejb3/app/target/demo-ejb3-1.0-SNAPSHOT.ear</li> </ul> </p> <p> The demo also contains simple clients that you can alter and execute to better understand the functionality in each demo sub-package. </p> </subsection> </section> </body> </document> 1.19 +1 -0 cartridges/andromda-ejb3/src/site/site.xml Index: site.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/site/site.xml,v retrieving revision 1.18 retrieving revision 1.19 diff -u -w -r1.18 -r1.19 --- site.xml 5 Jul 2006 02:46:27 -0000 1.18 +++ site.xml 6 Oct 2006 06:49:58 -0000 1.19 @@ -19,6 +19,7 @@ <item name="About EJB3 Cartridge" href="index.html"/> <item name="Installation" href="installation.html"/> <item name="New Project" href="project.html"/> + <item name="Samples" href="samples.html"/> </menu> <menu name="Model"> <item name="Profile" href="profile.html"/> 1.34 +3 -0 cartridges/andromda-ejb3/src/changes/changes.xml Index: changes.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/changes/changes.xml,v retrieving revision 1.33 retrieving revision 1.34 diff -u -w -r1.33 -r1.34 --- changes.xml 6 Oct 2006 02:06:31 -0000 1.33 +++ changes.xml 6 Oct 2006 06:49:58 -0000 1.34 @@ -300,6 +300,9 @@ <section dev="vancek" type="add"> Add support for member variables within type safe enumerations. </section> + <section dev="vancek" type="add"> + Demo EJB3 added to andromda-plugins/samples accompanied by quick site docs. + </section> </release> </body> </document> \ No newline at end of file |
From: Vance K. <va...@us...> - 2006-10-06 16:11:22
|
User: vancek Date: 06/10/06 09:11:20 Modified: andromda-ejb3/src/changes changes.xml Log: rename section tag to action tag Revision Changes Path 1.35 +6 -6 cartridges/andromda-ejb3/src/changes/changes.xml Index: changes.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/changes/changes.xml,v retrieving revision 1.34 retrieving revision 1.35 diff -u -w -r1.34 -r1.35 --- changes.xml 6 Oct 2006 06:49:58 -0000 1.34 +++ changes.xml 6 Oct 2006 16:11:20 -0000 1.35 @@ -293,16 +293,16 @@ support for multiple cascade options for the default cascade property on entities. Fix the naming issue with entityAggregationCascade. </action> - <section dev="vancek" type="fix"> + <action dev="vancek" type="fix"> EJB3MessageDrivenFacade.getDestinationType requires search and replace for destination type retrieved from TV. i.e. replace all '_' with '.'. - </section> - <section dev="vancek" type="add"> + </action> + <action dev="vancek" type="add"> Add support for member variables within type safe enumerations. - </section> - <section dev="vancek" type="add"> + </action> + <action dev="vancek" type="add"> Demo EJB3 added to andromda-plugins/samples accompanied by quick site docs. - </section> + </action> </release> </body> </document> \ No newline at end of file |
From: Vance K. <va...@us...> - 2006-12-18 02:03:49
|
User: vancek Date: 06/12/17 18:03:50 Removed: andromda-ejb3/src/changes changes.xml Log: moved changes.xml to src/site |