You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(6) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(178) |
Feb
(169) |
Mar
(286) |
Apr
(117) |
May
(98) |
Jun
(68) |
Jul
(63) |
Aug
(121) |
Sep
(88) |
Oct
(124) |
Nov
(2) |
Dec
(111) |
2007 |
Jan
(224) |
Feb
(69) |
Mar
(10) |
Apr
(72) |
May
(7) |
Jun
(21) |
Jul
(33) |
Aug
(35) |
Sep
(12) |
Oct
(22) |
Nov
(5) |
Dec
(6) |
2008 |
Jan
(2) |
Feb
(10) |
Mar
(39) |
Apr
(58) |
May
(34) |
Jun
(9) |
Jul
(27) |
Aug
(10) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
From: Chris M. <cm...@us...> - 2006-10-18 12:30:46
|
User: cmicali Date: 06/10/18 05:30:45 Modified: andromda-nhibernate/src/main/resources/templates/nhibernate nhibernate.hbm.xml.vm Log: - Fix for [NETCART-14] Revision Changes Path 1.2 +1 -1 cartridges/andromda-nhibernate/src/main/resources/templates/nhibernate/nhibernate.hbm.xml.vm Index: nhibernate.hbm.xml.vm =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-nhibernate/src/main/resources/templates/nhibernate/nhibernate.hbm.xml.vm,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- nhibernate.hbm.xml.vm 8 Mar 2006 04:15:24 -0000 1.1 +++ nhibernate.hbm.xml.vm 18 Oct 2006 12:30:44 -0000 1.2 @@ -5,7 +5,7 @@ #macro (renderPropertiesAndAssociations $entity $paramSqlPrefix) ## **** Generate attributes **** #foreach ($attribute in $entity.attributes) -#if (!$attribute.identifier) +#if (!$attribute.identifier && !$attribute.transient) #set ($fullyQualifiedPropertyType = $attribute.type.fullyQualifiedHibernateType) #if ($attribute.type.enumeration) #set ($fullyQualifiedPropertyType = "$attribute.type.fullyQualifiedHibernateType, ${commonAssemblyName}") |
From: Leif J. <le...@us...> - 2006-10-11 01:45:23
|
User: leifj Date: 06/10/10 12:12:52 Modified: andromda-semweb pom.xml Log: added developer-info Revision Changes Path 1.2 +9 -0 cartridges/andromda-semweb/pom.xml Index: pom.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-semweb/pom.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- pom.xml 5 Oct 2006 10:42:21 -0000 1.1 +++ pom.xml 10 Oct 2006 19:12:52 -0000 1.2 @@ -11,6 +11,15 @@ <packaging>andromda-cartridge</packaging> <name>AndroMDA Semantic Web Cartridge</name> <description>Produces RDF and OWL schema from a model.</description> + <developers> + <developer> + <name>Leif Johansson</name> + <id>leifj</id> + <email>le...@it...</email> + <organization>Stockholm university</organization> + <timezone>MET</timezone> + </developer> + </developers> <build> <plugins> <plugin> |
From: Chris M. <cm...@us...> - 2006-10-10 03:59:05
|
User: cmicali Date: 06/10/09 20:58:59 Modified: andromda-nspring/src/main/resources/templates/nspring NSpringServiceException.vsl Log: - Fixed error Revision Changes Path 1.3 +1 -1 cartridges/andromda-nspring/src/main/resources/templates/nspring/NSpringServiceException.vsl Index: NSpringServiceException.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-nspring/src/main/resources/templates/nspring/NSpringServiceException.vsl,v retrieving revision 1.2 retrieving revision 1.3 diff -u -w -r1.2 -r1.3 --- NSpringServiceException.vsl 10 Oct 2006 03:41:11 -0000 1.2 +++ NSpringServiceException.vsl 10 Oct 2006 03:58:58 -0000 1.3 @@ -47,7 +47,7 @@ } } -n/* +/* [Serializable] public class ${service.name}Exception : System.ApplicationException, ISerializable { |
From: Chris M. <cm...@us...> - 2006-10-10 03:41:11
|
User: cmicali Date: 06/10/09 20:41:11 Modified: andromda-nspring/src/main/resources/templates/nspring NSpringServiceException.vsl Log: - Temporarily disabled most functionality to fix a build break in Visual Studio with a freshly generated app from android Revision Changes Path 1.2 +33 -1 cartridges/andromda-nspring/src/main/resources/templates/nspring/NSpringServiceException.vsl Index: NSpringServiceException.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-nspring/src/main/resources/templates/nspring/NSpringServiceException.vsl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- NSpringServiceException.vsl 2 Oct 2006 01:21:47 -0000 1.1 +++ NSpringServiceException.vsl 10 Oct 2006 03:41:11 -0000 1.2 @@ -8,14 +8,46 @@ using System; using System.Xml; using System.Runtime.Serialization; +/* using System.Web; using System.Web.Services.Protocols; +*/ #if ($stringUtils.isNotBlank($service.packageName)) namespace $service.packageName { #end + public class ${service.name}Exception : System.ApplicationException + { + + /// <summary> + /// Initializes a new instance of ${service.name}Exception with a specified error message. + /// </summary> + /// <param name="message">A message that describes the error.</param> + internal ${service.name}Exception(Exception e) + : base(e.Message, e) + { + } + + /// <summary> + /// Create a new instance of the ${service.name}Exception. + /// </summary> + /// <param name="exception">Actual exception that contains the error information.</param> + public static ${service.name}Exception Create(Exception e) + { + if (e is ${service.name}Exception) + { + return (${service.name}Exception)e; + } + else + { + return new ${service.name}Exception(e); + } + } + } + +n/* [Serializable] public class ${service.name}Exception : System.ApplicationException, ISerializable { @@ -254,7 +286,7 @@ return messageNode; } } - +*/ #if ($stringUtils.isNotBlank($service.packageName)) } #end \ No newline at end of file |
From: Vance K. <va...@us...> - 2006-10-09 04:08:51
|
User: vancek Date: 06/10/08 21:08:51 Modified: andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades EJB3ManageableEntityFacadeLogicImpl.java EJB3EntityFacadeLogicImpl.java andromda-ejb3/src/changes changes.xml andromda-ejb3/src/main/resources/templates/ejb3 EntityEmbeddable.vsl Log: jira EJB-45 fix for failure to use correct metafacade when adding Manageable stereotype for UML2 Revision Changes Path 1.8 +64 -0 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.7 retrieving revision 1.8 diff -u -w -r1.7 -r1.8 --- EJB3ManageableEntityFacadeLogicImpl.java 8 Oct 2006 15:23:57 -0000 1.7 +++ EJB3ManageableEntityFacadeLogicImpl.java 9 Oct 2006 04:08:51 -0000 1.8 @@ -1,13 +1,17 @@ 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.metafacades.uml.AttributeFacade; import org.andromda.metafacades.uml.EntityAttribute; 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; @@ -240,4 +244,64 @@ } return rolesAllowed != null ? rolesAllowed.toString() : null; } + + /** + * @see org.andromda.cartridges.ejb3.metafacades.EJB3ManageableEntityFacadeLogic#getIdentifier() + * + * Override the implemenation in EJB3EntityFacade as UML2 models cannot retrieve the identifier via the + * super EJB3EntityFacade. + */ + public EJB3EntityAttributeFacade getIdentifier() + { + return (EJB3EntityAttributeFacade)super.getIdentifiers().iterator().next(); + } + + /** + * @see org.andromda.cartridges.ejb3.metafacades.EJB3ManageableEntityFacadeLogic#getAllInstanceAttributes() + * + * Override the implemenation in EJB3EntityFacade as UML2 models will not get an + * EJB3ManageableEntityAttributeFacade when retrieving the attributes. + */ + public List getAllInstanceAttributes() + { + return EJB3MetafacadeUtils.getAllInstanceAttributes(this); + } + + /** + * @see org.andromda.cartridges.ejb3.metafacades.EJB3ManageableEntityFacadeLogic#getInheritedInstanceAttributes() + * + * Override the implemenation in EJB3EntityFacade as UML2 models will not get an + * EJB3ManageableEntityAttributeFacade when retrieving the attributes. + */ + public List getInheritedInstanceAttributes() + { + return EJB3MetafacadeUtils.getInheritedInstanceAttributes(this); + } + + /** + * @see org.andromda.cartridges.ejb3.metafacades.EJB3ManageableEntityFacadeLogic# + * getInstanceAttributes(boolean, boolean) + * + * Override the implemenation in EJB3EntityFacade as UML2 models will not get an + * EJB3ManageableEntityAttributeFacade when retrieving the attributes. + */ + public Collection getInstanceAttributes(boolean follow, boolean withIdentifiers) + { + final Collection attributes = this.getAttributes(follow, withIdentifiers); + CollectionUtils.filter( + attributes, + new Predicate() + { + public boolean evaluate(Object object) + { + boolean valid = true; + if (object instanceof EntityAttribute) + { + valid = !((EntityAttribute)object).isStatic(); + } + return valid; + } + }); + return attributes; + } } \ No newline at end of file 1.27 +18 -10 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.26 retrieving revision 1.27 diff -u -w -r1.26 -r1.27 --- EJB3EntityFacadeLogicImpl.java 8 Oct 2006 13:52:34 -0000 1.26 +++ EJB3EntityFacadeLogicImpl.java 9 Oct 2006 04:08:51 -0000 1.27 @@ -6,6 +6,7 @@ import java.util.Collections; import java.util.Iterator; import java.util.LinkedHashSet; +import java.util.List; import org.andromda.cartridges.ejb3.EJB3Globals; import org.andromda.cartridges.ejb3.EJB3Profile; @@ -1391,15 +1392,22 @@ boolean follow, boolean withIdentifiers) { - return new FilteredCollection(this.getAttributes(follow, withIdentifiers)) + final Collection attributes = this.getAttributes(follow, withIdentifiers); + CollectionUtils.filter( + attributes, + new Predicate() { - private static final long serialVersionUID = -8511475954374453779L; - public boolean evaluate(Object object) { - return !((AttributeFacade)object).isStatic(); + boolean valid = true; + if (object instanceof EntityAttribute) + { + valid = !((EntityAttribute)object).isStatic(); } - }; + return valid; + } + }); + return attributes; } /** 1.38 +7 -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.37 retrieving revision 1.38 diff -u -w -r1.37 -r1.38 --- changes.xml 8 Oct 2006 15:23:57 -0000 1.37 +++ changes.xml 9 Oct 2006 04:08:51 -0000 1.38 @@ -295,7 +295,7 @@ </action> <action dev="vancek" type="fix"> EJB3MessageDrivenFacade.getDestinationType requires search and replace for destination type retrieved - from TV. i.e. replace all '_' with '.'. + from TV. i.e. replace all '_' with '.'. Also fix casing for javax.jms.Queue and javax.jms.Topic. </action> <action dev="vancek" type="add"> UMLMETA-78 - Add support for member variables within type safe enumerations. @@ -307,6 +307,12 @@ Fix getIdentifier naming in EJB3EntityFacade which eliminates the workaround solution in EJB3ManageableEntityFacade. </action> + <action dev="vancek" due-to="markh" type="fix"> + JIRA EJB-45 - ClassCastException when setting Manageable stereotype on entities. The + EJB3ManageableEntityAttributeFacade was not being picked up correctly. Instead, the + emf.uml2.ManageableEntityAttributeFacade was used. The fix was to simply override the methods returning + attributes and identifiers in EJB3ManageableEntityFacade. + </action> </release> </body> </document> \ No newline at end of file 1.41 +3 -4 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.40 retrieving revision 1.41 diff -u -w -r1.40 -r1.41 --- EntityEmbeddable.vsl 8 Oct 2006 14:34:00 -0000 1.40 +++ EntityEmbeddable.vsl 9 Oct 2006 04:08:51 -0000 1.41 @@ -21,7 +21,7 @@ #**##set ($generatedFile = "${stringUtils.replace($entity.fullyQualifiedEntityName,'.','/')}.java") #end -#set ($identifier = $entity.identifiers.iterator().next()) +#set ($identifier = $entity.identifier) /** * Autogenerated POJO EJB#if ($entity.entityImplementationRequired || $entity.embeddableSuperclass) mapped super#end class for ${entity.entityName} containing the * bulk of the entity implementation. @@ -146,14 +146,14 @@ #**##end #end ## -## Only declase instance attributes that are NOT inherited. +## Only declare instance attributes that are NOT inherited. ## If a mapped superclass then don't generate auto identifier - but include ## normal defined identifier if one is defined. ## #if ($entity.embeddableSuperclass && $entity.dynamicIdentifiersPresent) #**##set ($attributes = $entity.getInstanceAttributes(false, false)) #else -#**##set ($attributes = $entity.instanceAttributes) +#**##set ($attributes = $entity.getInstanceAttributes(false, true)) #end #if (!$attributes.empty) @@ -242,7 +242,6 @@ ## Autogenerate a constructor implementation with all attributes. #set ($allAttributes = $transform.filterByVisibility($entity.allInstanceAttributes, "public")) #set ($inheritedAttributes = $transform.filterByVisibility($entity.inheritedInstanceAttributes, "public")) -#set ($instanceAttributes = $transform.filterByVisibility($entity.instanceAttributes, "public")) #if ($entity.syntheticCreateMethodAllowed && !$transform.filterUpdatableAttributes($allAttributes, $entity.compositePrimaryKeyPresent).empty) /** * Implementation for the constructor with all POJO attributes except auto incremented identifiers. |
From: Vance K. <va...@us...> - 2006-10-09 04:06:54
|
User: vancek Date: 06/10/08 21:06:55 Modified: andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades EJB3MessageDrivenFacadeLogicImpl.java Log: destinationType is case sensitive Revision Changes Path 1.10 +14 -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.9 retrieving revision 1.10 diff -u -w -r1.9 -r1.10 --- EJB3MessageDrivenFacadeLogicImpl.java 29 Sep 2006 08:01:28 -0000 1.9 +++ EJB3MessageDrivenFacadeLogicImpl.java 9 Oct 2006 04:06:55 -0000 1.10 @@ -89,7 +89,20 @@ { destinationType = (String)this.getConfiguredProperty(MDB_DESTINATION_TYPE); } - return StringUtils.replaceChars(destinationType, '_', '.'); + + /** + * Formatting required to replace '_' with '.' and return correct casing + */ + destinationType = StringUtils.replaceChars(destinationType, '_', '.'); + if (destinationType.equalsIgnoreCase(EJB3Globals.MDB_DESTINATION_TYPE_QUEUE)) + { + destinationType = EJB3Globals.MDB_DESTINATION_TYPE_QUEUE; + } + else if (destinationType.equalsIgnoreCase(EJB3Globals.MDB_DESTINATION_TYPE_TOPIC)) + { + destinationType = EJB3Globals.MDB_DESTINATION_TYPE_TOPIC; + } + return destinationType; } /** |
From: Vance K. <va...@us...> - 2006-10-08 15:24:00
|
User: vancek Date: 06/10/08 08:23:57 Modified: andromda-ejb3/src/main/resources/templates/ejb3/crud ManageableServiceRemote.vsl ManageableServiceBase.vsl andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades EJB3ManageableEntityFacadeLogicImpl.java andromda-ejb3/src/changes changes.xml andromda-ejb3/src/main/uml EJB3MetafacadeModel.xml.zip Log: removed workaround in EJB3ManageableEntityFacade due to invalid naming of getIdentifier Revision Changes Path 1.4 +3 -7 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/crud/ManageableServiceRemote.vsl Index: ManageableServiceRemote.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/crud/ManageableServiceRemote.vsl,v retrieving revision 1.3 retrieving revision 1.4 diff -u -w -r1.3 -r1.4 --- ManageableServiceRemote.vsl 26 Jun 2006 06:45:12 -0000 1.3 +++ ManageableServiceRemote.vsl 8 Oct 2006 15:23:57 -0000 1.4 @@ -6,16 +6,12 @@ #set ($generatedFile = "${manageable.manageableServiceFullPath}.java") #set ($memberList = $manageable.listManageableMembers(true)) #if (!$manageable.identifiers.empty) -#**##set ($identifier = $manageable.manageableIdentifierWorkaround) +#**##set ($identifier = $manageable.manageableIdentifier) #end package $manageable.manageablePackageName; /** * Manageable service bean remote interface - * - * NOTE: This is currently using the workaround to get the manageable entity identifer - * Once the metafacade engine is fixed, search for all calls with suffix "Workaround" - * and remove this suffix. */ public interface $manageable.manageableServiceName { @@ -44,12 +40,12 @@ #**##end #end -#if ($manageable.updateWorkaround) +#if ($manageable.update) public $manageable.fullyQualifiedName update($memberList) throws ${manageable.fullyQualifiedManageableServiceUpdateExceptionName}; #end -#if ($manageable.deleteWorkaround) +#if ($manageable.delete) public void delete(${identifier.type.fullyQualifiedName}[] ids) throws ${manageable.fullyQualifiedManageableServiceDeleteExceptionName}; 1.7 +12 -16 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/crud/ManageableServiceBase.vsl Index: ManageableServiceBase.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/crud/ManageableServiceBase.vsl,v retrieving revision 1.6 retrieving revision 1.7 diff -u -w -r1.6 -r1.7 --- ManageableServiceBase.vsl 10 Jul 2006 05:39:26 -0000 1.6 +++ ManageableServiceBase.vsl 8 Oct 2006 15:23:57 -0000 1.7 @@ -7,16 +7,12 @@ #set ($memberList = $manageable.listManageableMembers(true)) #set ($memberListArguments = $manageable.listManageableMembers(false)) #if (!$manageable.identifiers.empty) -#**##set ($identifier = $manageable.manageableIdentifierWorkaround) +#**##set ($identifier = $manageable.manageableIdentifier) #end package $manageable.manageablePackageName; /** * Autogenerated EJB manageable session bean class ${manageable.manageableServiceName}. - * - * NOTE: This is currently using the workaround to get the manageable entity identifer - * Once the metafacade engine is fixed, search for all calls with suffix "Workaround" - * and remove this suffix. */ /** * Do not specify the javax.ejb.${manageable.type} annotation @@ -53,13 +49,13 @@ // ------------ Private Operations ---------- #**##foreach ($associatedClass in $associatedClasses) - private java.util.List<${associatedClass.fullyQualifiedEntityName}> find${associatedClass.name}ByIds(${associatedClass.manageableIdentifierWorkaround.type.fullyQualifiedName}[] ids) + private java.util.List<${associatedClass.fullyQualifiedEntityName}> find${associatedClass.name}ByIds(${associatedClass.identifier.type.fullyQualifiedName}[] ids) throws ${manageable.fullyQualifiedManageableServiceReadExceptionName} { try { - javax.persistence.Query query = emanager.createQuery("select entity from ${associatedClass.entityName} as entity where entity.${associatedClass.manageableIdentifierWorkaround.name} in (:${associatedClass.manageableIdentifierWorkaround.name})"); - query.setParameter("${associatedClass.manageableIdentifierWorkaround.name}", java.util.Arrays.asList(ids)); + javax.persistence.Query query = emanager.createQuery("select entity from ${associatedClass.entityName} as entity where entity.${associatedClass.identifier.name} in (:${associatedClass.identifier.name})"); + query.setParameter("${associatedClass.identifier.name}", java.util.Arrays.asList(ids)); return query.getResultList(); } catch (Exception ex) @@ -335,7 +331,7 @@ ## add left join fetch to query to retrieve many side of association ends ## this is only required if the ends are not initialised further down ## -#**##if ($member.type.displayAttributeWorkaround.name == $member.type.manageableIdentifierWorkaround.name) +#**##if ($member.type.manageableDisplayAttribute.name == $member.type.identifier.name) #* *##if ($member.many) #* *##set ($findAllQuery = "${findAllQuery} left join fetch entity.${member.name}") #* *##end @@ -347,7 +343,7 @@ #end java.util.List<${manageable.fullyQualifiedEntityName}> entities = query.getResultList(); #foreach ($member in $manageable.manageableAssociationEnds) -#**##if ($member.type.displayAttributeWorkaround.name != $member.type.manageableIdentifierWorkaround.name) +#**##if ($member.type.manageableDisplayAttribute.name != $member.type.identifier.name) org.apache.commons.collections.CollectionUtils.transform(entities, new org.apache.commons.collections.Transformer() { public Object transform(final Object object) @@ -356,18 +352,18 @@ if (result.${member.getterName}() != null) { #* *##if ($member.many) - java.util.Collection<${member.type.displayAttributeWorkaround.type.fullyQualifiedName}> $member.labelName = java.util.Collections.synchronizedCollection(new java.util.ArrayList<${member.type.displayAttributeWorkaround.type.fullyQualifiedName}>()); + java.util.Collection<${member.type.manageableDisplayAttribute.type.fullyQualifiedName}> $member.labelName = java.util.Collections.synchronizedCollection(new java.util.ArrayList<${member.type.manageableDisplayAttribute.type.fullyQualifiedName}>()); for (final java.util.Iterator<${member.type.fullyQualifiedEntityName}> iterator = result.${member.getterName}().iterator(); iterator.hasNext();) { ${member.type.fullyQualifiedEntityName} entity = iterator.next(); synchronized (${member.labelName}) { - ${member.labelName}.add(entity.${member.type.displayAttributeWorkaround.getterName}()); + ${member.labelName}.add(entity.${member.type.manageableDisplayAttribute.getterName}()); } } result.${member.setterLabelName}(${member.labelName}); #* *##else - result.${member.setterName}#if ($member.many)Labels#else#**#Label#end(result.${member.getterName}().${member.type.displayAttributeWorkaround.getterName}()); + result.${member.setterName}#if ($member.many)Labels#else#**#Label#end(result.${member.getterName}().${member.type.manageableDisplayAttribute.getterName}()); #* *##end } return result; @@ -435,7 +431,7 @@ try { #* *##foreach ($member in $manageable.manageableAssociationEnds) - lists.put("${member.name}", emanager.createQuery("select item.${member.type.manageableIdentifierWorkaround.name}, item.${member.type.displayAttributeWorkaround.name} from ${member.type.entityName} as item order by item.${member.type.displayAttributeWorkaround.name}").getResultList()); + lists.put("${member.name}", emanager.createQuery("select item.${member.type.identifier.name}, item.${member.type.manageableDisplayAttribute.name} from ${member.type.entityName} as item order by item.${member.type.manageableDisplayAttribute.name}").getResultList()); #* *##end } catch (Exception ex) @@ -447,7 +443,7 @@ #**##end #end -#if ($manageable.updateWorkaround) +#if ($manageable.update) /** * Update Operation * @@ -533,7 +529,7 @@ } #end -#if ($manageable.deleteWorkaround) +#if ($manageable.delete) /** * Delete operation * 1.7 +0 -63 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.6 retrieving revision 1.7 diff -u -w -r1.6 -r1.7 --- EJB3ManageableEntityFacadeLogicImpl.java 11 Aug 2006 05:49:46 -0000 1.6 +++ EJB3ManageableEntityFacadeLogicImpl.java 8 Oct 2006 15:23:57 -0000 1.7 @@ -215,69 +215,6 @@ } /** - * @see org.andromda.cartridges.ejb3.metafacades.EJB3ManageableEntityFacadeLogic#isDeleteWorkaround() - */ - protected boolean handleIsDeleteWorkaround() - { - return (this.getIdentifiers(true).iterator().next() != null ? true : false); - } - - /** - * @see org.andromda.cartridges.ejb3.metafacades.EJB3ManageableEntityFacadeLogic#isUpdateWorkaround() - */ - protected boolean handleIsUpdateWorkaround() - { - return (this.getIdentifiers(true).iterator().next() != null ? true : false); - } - - /** - * @see org.andromda.cartridges.ejb3.metafacades.EJB3ManageableEntityFacadeLogic#getManageableIdentifierWorkaround() - */ - protected EntityAttribute handleGetManageableIdentifierWorkaround() - { - return (EntityAttribute)this.getIdentifiers(true).iterator().next(); - } - - /** - * @see org.andromda.cartridges.ejb3.metafacades.EJB3ManageableEntityFacadeLogic#handleGetDisplayAttributeWorkaround() - */ - protected AttributeFacade handleGetDisplayAttributeWorkaround() - { - AttributeFacade displayAttribute = null; - - final Object taggedValueObject = findTaggedValue(UMLProfile.TAGGEDVALUE_MANAGEABLE_DISPLAY_NAME); - if (taggedValueObject != null) - { - displayAttribute = findAttribute(StringUtils.trimToEmpty(taggedValueObject.toString())); - } - - final Collection attributes = getAttributes(true); - for (final Iterator attributeIterator = attributes.iterator(); - attributeIterator.hasNext() && displayAttribute == null;) - { - final EntityAttribute attribute = (EntityAttribute)attributeIterator.next(); - if (attribute.isUnique()) - { - displayAttribute = attribute; - } - } - - if (displayAttribute == null) - { - if (!getIdentifiers().isEmpty()) - { - displayAttribute = (EntityAttribute)getIdentifiers().iterator().next(); - } - else if (!attributes.isEmpty()) - { - displayAttribute = (EntityAttribute)attributes.iterator().next(); - } - } - - return displayAttribute; - } - - /** * @see org.andromda.cartridges.ejb3.metafacades.EJB3ManageableEntityFacadeLogic#handleGetManageableRolesAllowed() */ protected String handleGetManageableRolesAllowed() 1.37 +2 -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.36 retrieving revision 1.37 diff -u -w -r1.36 -r1.37 --- changes.xml 8 Oct 2006 13:52:34 -0000 1.36 +++ changes.xml 8 Oct 2006 15:23:57 -0000 1.37 @@ -304,7 +304,8 @@ Demo EJB3 added to andromda-plugins/samples accompanied by quick site docs. </action> <action dev="vancek" type="fix"> - Fix getIdentifier naming in EJB3EntityFacade. + Fix getIdentifier naming in EJB3EntityFacade which eliminates the workaround solution in + EJB3ManageableEntityFacade. </action> </release> </body> 1.47 +214 -221 cartridges/andromda-ejb3/src/main/uml/EJB3MetafacadeModel.xml.zip <<Binary file>> |
From: Vance K. <va...@us...> - 2006-10-08 14:34:00
|
User: vancek Date: 06/10/08 07:34:00 Modified: andromda-ejb3/src/main/resources/templates/ejb3 EntityEmbeddable.vsl Log: fix EJB3EntityFacade.identifier naming Revision Changes Path 1.40 +2 -2 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.39 retrieving revision 1.40 diff -u -w -r1.39 -r1.40 --- EntityEmbeddable.vsl 25 Jul 2006 06:42:51 -0000 1.39 +++ EntityEmbeddable.vsl 8 Oct 2006 14:34:00 -0000 1.40 @@ -218,7 +218,7 @@ #**##foreach ($associationEnd in $entityRelations) #* *##set ($target = $associationEnd.otherEnd) #* *##if ($target.navigable) -#* *##if ($target.type.manageable && $target.type.manageableDisplayAttribute.name != $target.type.identifer.name) +#* *##if ($target.type.manageable && $target.type.manageableDisplayAttribute.name != $target.type.identifier.name) #* *##if ($target.many) private java.util.Collection<${target.type.manageableDisplayAttribute.type.fullyQualifiedName}> ${target.labelName}; // Manageable display attribute #* *##else @@ -789,7 +789,7 @@ ## on getter. A display attribute differs from the identifier if modelled by ## the Unique stereotype. ## -#* *##if ($target.type.manageable && $target.type.manageableDisplayAttribute.name != $target.type.identifer.name) +#* *##if ($target.type.manageable && $target.type.manageableDisplayAttribute.name != $target.type.identifier.name) #* *##if ($velocityCount == 1) // -------- Manageable Attribute Display ----------- |
From: Vance K. <va...@us...> - 2006-10-08 13:52:40
|
User: vancek Date: 06/10/08 06:52:34 Modified: andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades EJB3AssociationEndFacadeLogicImpl.java EJB3EntityFacadeLogicImpl.java andromda-ejb3/src/changes changes.xml andromda-ejb3/src/main/uml EJB3MetafacadeModel.xml.zip Log: fix EJB3EntityFacade.identifier naming Revision Changes Path 1.16 +1 -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.15 retrieving revision 1.16 diff -u -w -r1.15 -r1.16 --- EJB3AssociationEndFacadeLogicImpl.java 24 Aug 2006 08:54:31 -0000 1.15 +++ EJB3AssociationEndFacadeLogicImpl.java 8 Oct 2006 13:52:34 -0000 1.16 @@ -716,7 +716,7 @@ if(name == null) { // Find the identifier - EJB3EntityAttributeFacade identifier = ((EJB3EntityFacade)this.getOtherEnd().getType()).getIdentifer(); + EJB3EntityAttributeFacade identifier = ((EJB3EntityFacade)this.getOtherEnd().getType()).getIdentifier(); value = identifier.getType().getFullyQualifiedName(); return value.toString(); } 1.26 +2 -2 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.25 retrieving revision 1.26 diff -u -w -r1.25 -r1.26 --- EJB3EntityFacadeLogicImpl.java 11 Aug 2006 05:49:46 -0000 1.25 +++ EJB3EntityFacadeLogicImpl.java 8 Oct 2006 13:52:34 -0000 1.26 @@ -1094,9 +1094,9 @@ } /** - * @see org.andromda.cartridges.ejb3.metafacades.EJB3EntityFacadeLogic#handleGetIdentifer() + * @see org.andromda.cartridges.ejb3.metafacades.EJB3EntityFacadeLogic#handleGetIdentifier() */ - protected Object handleGetIdentifer() + protected Object handleGetIdentifier() { return (EJB3EntityAttributeFacade)this.getIdentifiers().iterator().next(); } 1.36 +4 -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.35 retrieving revision 1.36 diff -u -w -r1.35 -r1.36 --- changes.xml 6 Oct 2006 16:11:20 -0000 1.35 +++ changes.xml 8 Oct 2006 13:52:34 -0000 1.36 @@ -298,11 +298,14 @@ from TV. i.e. replace all '_' with '.'. </action> <action dev="vancek" type="add"> - Add support for member variables within type safe enumerations. + UMLMETA-78 - Add support for member variables within type safe enumerations. </action> <action dev="vancek" type="add"> Demo EJB3 added to andromda-plugins/samples accompanied by quick site docs. </action> + <action dev="vancek" type="fix"> + Fix getIdentifier naming in EJB3EntityFacade. + </action> </release> </body> </document> \ No newline at end of file 1.46 +231 -238 cartridges/andromda-ejb3/src/main/uml/EJB3MetafacadeModel.xml.zip <<Binary 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-10-06 06:52:52
|
User: vancek Date: 06/10/05 23:52:50 Added: samples/demo-ejb3 jaxrpc-mapping.xml readme.txt .cvsignore pom.xml .project wstools.bat config.xml .classpath jbosswsConfig.xml samples/demo-ejb3/core/src/main/java/org/andromda/demo/ejb3/vehicle VehicleManagerBean.java samples/demo-ejb3/core/src/main/java/org/andromda/demo/ejb3/rental RentalServiceBean.java RentalCarDaoImpl.java RentalCar.java PaymentServiceBean.java PaymentProcessorMDBBeanImpl.java PersonDaoImpl.java samples/demo-ejb3/client .cvsignore pom.xml samples/demo-ejb3/mda/src/main/uml demo-ejb3.xmi samples/demo-ejb3/core/src/main/java/org/andromda/demo/ejb3/email EmailSenderInterceptor3.java EmailSenderMDBBeanImpl.java EmailSenderInterceptor2.java EmailSenderInterceptor1.java EmailSenderServiceBean.java samples/demo-ejb3/core/src/main/java/org/andromda/demo/ejb3/animal AnimalInterceptor1.java AnimalInterceptor3.java AnimalServiceListener.java AnimalServiceBean.java Animal.java AnimalInterceptorMetod.java AnimalListener.java AnimalInterceptor2.java AnimalDaoImpl.java samples/demo-ejb3/core/src/main/java/org/andromda/demo/ejb3/athlete AthleteManagerBean.java samples/demo-ejb3/web/src/main/properties messages.properties samples/demo-ejb3/app/src/main/config demo-ejb3-ds.xml demo-ejb3-mq-destinations-service.xml samples/demo-ejb3/mda/src/main/config/mappings WebMergeMappings.xml samples/demo-ejb3/core/src/main/java/org/andromda/demo/ejb3/order OrderManagerBean.java OrderInfoDaoImpl.java samples/demo-ejb3/client/src/main/java/org/andromda/demo/ejb3/client/order Client.java samples/demo-ejb3/core/src/main/java/org/andromda/demo/common DefaultInterceptor1.java samples/demo-ejb3/common pom.xml .cvsignore samples/demo-ejb3/client/src/main/java/org/andromda/demo/ejb3/client/vehicle Client.java samples/demo-ejb3/app/src/main/application/META-INF jboss-app.xml samples/demo-ejb3/client/src/main/java/org/andromda/demo/ejb3/client/camera Client.java samples/demo-ejb3/mda pom.xml .cvsignore samples/demo-ejb3/client/src/main/java/org/andromda/demo/ejb3/client/ticket Client.java samples/demo-ejb3/core/src/main/java/org/andromda/demo/ejb3/bicycle BicycleServiceBean.java samples/demo-ejb3/app .cvsignore pom.xml samples/demo-ejb3/client/src/main/java/org/andromda/demo/ejb3/client/rental Client.java samples/demo-ejb3/core/src/main/java/org/andromda/demo/ejb3/bio BioServiceBean.java samples/demo-ejb3/core/src/main/java/org/andromda/demo/ejb3/camera CameraManagerBean.java samples/demo-ejb3/client/src/main/java/org/andromda/demo/ejb3/client/book Client.java samples/demo-ejb3/client/src/main/java/org/andromda/demo/ejb3/client/bicycle Client.java samples/demo-ejb3/client/src/main/java/org/andromda/demo/ejb3/client/email Client.java samples/demo-ejb3/core/src/main/java/org/andromda/demo/ejb3/employee EmployeeServiceBean.java EmployeeDaoImpl.java samples/demo-ejb3/web .cvsignore pom.xml samples/demo-ejb3/core/src/main/java/org/andromda/demo/ejb3/book BookServiceBean.java BookManagerBean.java samples/demo-ejb3/client/src/main/java/org/andromda/demo/ejb3/client/mobile Client.java samples/demo-ejb3/client/src/main/java/org/andromda/demo/ejb3/client/animal Client.java samples/demo-ejb3/client/src/main/java/org/andromda/demo/ejb3/client/user Client.java samples/demo-ejb3/core/src/main/java/org/andromda/demo/ejb3/customer CredentialImpl.java CustomerServiceBean.java ContactImpl.java samples/demo-ejb3/mda/src/main/config andromda.xml samples/demo-ejb3/core/src/main/java/org/andromda/demo/ejb3/user UserManagerBean.java samples/demo-ejb3/client/src/main/java/org/andromda/demo/ejb3/client/account Client.java samples/demo-ejb3/core pom.xml .cvsignore samples/demo-ejb3/client/src/main/java/org/andromda/demo/ejb3/client/bio Client.java samples/demo-ejb3/core/src/main/java/org/andromda/demo/ejb3/ticket TicketManagerBean.java samples/demo-ejb3/client/src/main/java/org/andromda/demo/ejb3/client/customer Client.java samples/demo-ejb3/core/src/main/java/org/andromda/demo/ejb3/rider RiderServiceBean.java samples/demo-ejb3/core/src/main/java/org/andromda/demo/ejb3/account AccountManagerBean.java samples/demo-ejb3/client/src/main/java/org/andromda/demo/ejb3/client/rider Client.java samples/demo-ejb3/core/src/main/java/org/andromda/demo/ejb3/mobile MobileServiceBean.java samples/demo-ejb3/client/src/main/java/org/andromda/demo/ejb3/client/employee Client.java Log: ejb3 demo sample Revision Changes Path 1.1 plugins/samples/demo-ejb3/jaxrpc-mapping.xml Index: jaxrpc-mapping.xml =================================================================== <?xml version="1.0" encoding="UTF-8"?> <java-wsdl-mapping xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.1" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd"> <package-mapping> <package-type>org.andromda.demo.ejb3.customer</package-type> <namespaceURI>http://org.andromda.demo.ejb3/customer</namespaceURI> </package-mapping> <java-xml-type-mapping> <java-type>org.andromda.demo.ejb3.customer.CustomerException</java-type> <root-type-qname xmlns:typeNS="http://org.andromda.demo.ejb3/customer">typeNS:CustomerException</root-type-qname> <qname-scope>complexType</qname-scope> <variable-mapping> <java-variable-name>message</java-variable-name> <xml-element-name>message</xml-element-name> </variable-mapping> </java-xml-type-mapping> <java-xml-type-mapping> <java-type>org.andromda.demo.ejb3.customer.CustomerArray</java-type> <root-type-qname xmlns:typeNS="http://org.andromda.demo.ejb3/customer">typeNS:Customer.Array</root-type-qname> <qname-scope>complexType</qname-scope> <variable-mapping> <java-variable-name>value</java-variable-name> <xml-element-name>value</xml-element-name> </variable-mapping> </java-xml-type-mapping> <java-xml-type-mapping> <java-type>org.andromda.demo.ejb3.customer.Customer</java-type> <root-type-qname xmlns:typeNS="http://org.andromda.demo.ejb3/customer">typeNS:Customer</root-type-qname> <qname-scope>complexType</qname-scope> <variable-mapping> <java-variable-name>id</java-variable-name> <xml-element-name>id</xml-element-name> </variable-mapping> <variable-mapping> <java-variable-name>name</java-variable-name> <xml-element-name>name</xml-element-name> </variable-mapping> <variable-mapping> <java-variable-name>password</java-variable-name> <xml-element-name>password</xml-element-name> </variable-mapping> <variable-mapping> <java-variable-name>username</java-variable-name> <xml-element-name>username</xml-element-name> </variable-mapping> </java-xml-type-mapping> <java-xml-type-mapping> <java-type>org.andromda.demo.ejb3.customer.Customer[]</java-type> <anonymous-type-qname>http://org.andromda.demo.ejb3/customer:Customer.Array>value[0,unbounded]</anonymous-type-qname> <qname-scope>complexType</qname-scope> </java-xml-type-mapping> <exception-mapping> <exception-type>org.andromda.demo.ejb3.customer.CustomerException</exception-type> <wsdl-message xmlns:exMsgNS="http://org.andromda.demo.ejb3/customer">exMsgNS:CustomerException</wsdl-message> <constructor-parameter-order> <element-name>message</element-name> </constructor-parameter-order> </exception-mapping> <service-interface-mapping> <service-interface>org.andromda.demo.ejb3.customer.CustomerService</service-interface> <wsdl-service-name xmlns:serviceNS="http://org.andromda.demo.ejb3/customer">serviceNS:CustomerService</wsdl-service-name> <port-mapping> <port-name>CustomerServiceWSInterfacePort</port-name> <java-port-name>CustomerServiceWSInterfacePort</java-port-name> </port-mapping> </service-interface-mapping> <service-endpoint-interface-mapping> <service-endpoint-interface>org.andromda.demo.ejb3.customer.CustomerServiceWSInterface</service-endpoint-interface> <wsdl-port-type xmlns:portTypeNS="http://org.andromda.demo.ejb3/customer">portTypeNS:CustomerServiceWSInterface</wsdl-port-type> <wsdl-binding xmlns:bindingNS="http://org.andromda.demo.ejb3/customer">bindingNS:CustomerServiceWSInterfaceBinding</wsdl-binding> <service-endpoint-method-mapping> <java-method-name>addCustomer</java-method-name> <wsdl-operation>AddCustomer</wsdl-operation> <method-param-parts-mapping> <param-position>0</param-position> <param-type>org.andromda.demo.ejb3.customer.Customer</param-type> <wsdl-message-mapping> <wsdl-message xmlns:wsdlMsgNS="http://org.andromda.demo.ejb3/customer">wsdlMsgNS:CustomerServiceWSInterface_AddCustomer</wsdl-message> <wsdl-message-part-name>Customer</wsdl-message-part-name> <parameter-mode>IN</parameter-mode> </wsdl-message-mapping> </method-param-parts-mapping> </service-endpoint-method-mapping> <service-endpoint-method-mapping> <java-method-name>getAllCustomers</java-method-name> <wsdl-operation>GetAllCustomers</wsdl-operation> <wsdl-return-value-mapping> <method-return-value>org.andromda.demo.ejb3.customer.CustomerArray</method-return-value> <wsdl-message xmlns:wsdlMsgNS="http://org.andromda.demo.ejb3/customer">wsdlMsgNS:CustomerServiceWSInterface_GetAllCustomersResponse</wsdl-message> <wsdl-message-part-name>result</wsdl-message-part-name> </wsdl-return-value-mapping> </service-endpoint-method-mapping> </service-endpoint-interface-mapping> </java-wsdl-mapping> 1.1 plugins/samples/demo-ejb3/readme.txt Index: readme.txt =================================================================== A n d r o M D A - 3.2-SNAPSHOT AndroMDA is an open-source MDA framework distributed under the BSD license. Go to http://www.andromda.org/ for more information. The project located in this directory has been generated by Vance Karimi using the andromdapp:generate Maven plugin. You should at least be running Maven 2.0.1 if you want to build your project without any Maven-related problems, below is a summary of what has been generated and a list of example goals to call from the command line. The generated project structure is well-tailored for use in the development of J2EE projects. The build process itself makes use of Maven, dependencies and often-used goals have been added for your convenience. Custom configuration can be done by updating the root pom.xml file. /demo-ejb3 J2EE project | | The root of the project contains a few files that control the overall | build process and common properties (in the pom.xml). | |-- pom.xml | contains information about this project, you may add more information | as long as you do not violate the Maven POM schema, see | http://maven.apache.org/reference/project-descriptor.htmlt | +-- /mda | | | | The MDA module is the heart of this project, this is where | | AndroMDA is configured to generate the files needed to | | assemble the application | | | +-- pom.xml | | contains the AndroMDA dependencies and configuration (cartridges, translation-libraries, etc) | +-- /src | | additional sources such as merge-mappings can be | | placed here, check out the /main/uml directory, it contains | | the UML model from which AndroMDA will generate code | +-- /src/main/config/andromda.xml | configures AndroMDA and its components, most | importantly the cartridges which are listed in | their own namespace; global settings are done in the | 'default' namespace | +-- /common | | | | The COMMON module collects those resources and classes | | that are shared between the other modules. | | | +-- pom.xml | | lists common dependencies | +-- /target | shared resources and java classes are generated here, | such as value objects and exceptions | +-- /core | | | | The CORE module collects those resources and classes | | that use the EJB framework | | | +-- pom.xml | | lists EJB[3.0] dependencies | +-- /src/main/java | | EJB[3.0] classes that need manual implementation are | | generated here, they will not be overwritten upon | | regeneration | +-- /target | the EJB[3.0] classes here will be overwriten each time | AndroMDA generates new code using the EJB[3.0] cartridge | +-- /web | | | | The WEB module collects those resources and classes | | that make up the presentation layer. | | | +-- pom.xml | | lists WebApp dependencies | +-- /src/main/java | | controller implementations and editable resource bundles | | will be generated here, | | you might consider putting your own JSPs here to | | be copied over the generated ones when bundling the | | .war file | +-- /target | any Struts classes, JSPs, resource bundles and | configuration files are generated here | +-- /webservice | | | | The WEBSERVICE module collects those resources and | | classes that use the AXIS framework | | | +-- pom.xml | | lists any dependencies for webservices | +-- /target | generated files are emitted here | +-- /app | | The APP module collects those resources and classes | that are required to actually build the .ear bundle | +-- pom.xml | lists dependencies to be bundles into the | root of the .ear +-- /src | any custom resources that should be deployed | together with the application | (eg. server deployment descriptors) +-- /target a deployable application is bundled here In order to succesfully build your project you will need to know how to invoke the build process for the existing modules, here's a list of examples: %> mvn install simply builds all modules %> mvn -f app/pom.xml -Ddeploy collects all artifacts and builds a deployable .ear which is then deployed %> mvn clean cleans all generated files from each target directory %> mvn install -Ddeploy rebuilds the entire application and deploys %> mvn install -Denv=prod builds the entire application for the production environment, possible 'env' property values are 'prod' for production, 'val' for validation and 'dev' for development; not specifying any value for this property will build the application for the local configuration (more info at http://maven.apache.org/guides/introduction/introduction-to-profiles.html) %> mvn -f web/pom.xml andromdapp:undeploy -o undeploys the ear from your app server %> mvn -N andromdapp:build -Dmodules=core (or mvn -f core/pom.xml) only build the core module %> mvn -N andromdapp:build -Dmodules=web (or mvn -f web/pom.xml) only build the web module %> mvn nuke cleans out all /target directories and removes all Java classes with names ending with 'Impl' from the source directories (from the common, core and web modules); this goal asks for confirmation, but be careful calling it anyway as you will lose your manually edited files %> mvn -f core/pom.xml andromdapp:schema -Dtasks=create generates the DDL create code and subsequently tells the database to create the schema for the entities %> mvn -f core/pom.xml andromdapp:schema -Dtasks=drop generates the DDL drop code and subsequently tells the database to drop the schema for the entities %> mvn -f core/pom.xml andromdapp:schema -Dtasks=drop,create generates the drop and create DDL code and subsequently tells the database to drop and then create the schema for the entities %> mvn -f core/pom.xml andromdapp:schema -Dtasks=update attempts to update the database schema with incremental changes, might not work with all JDBC drivers see http://www.hibernate.org/hib_docs/v3/reference/en/html_single/#toolsetguide-s1-6 %> mvn -f core/pom.xml andromdapp:schema -Dtasks=validate validates the current Hibernate mappings against the database, you can also use this to simply check whether or not the mappings have been properly generated (in case of customizations) %> mvn -N andromdapp:build -Dmodules=mda:[andromda:start-server] (or mvn -f mda/pom.xml andromda:start-server) starts the AndroMDA server, with this server running you will be able to significantly speedup the generation process although it will require you to use another console while it is running %> mvn -N andromdapp:build -Dmodules=mda:[andromda:stop-server] (or mvn -f mda/pom.xml andromda:stop-server) stops the AndroMDA server %> mvn -N andromdapp:build -Dmodules=mda (or mvn -f mda/pom.xml) runs AndroMDA on your model and thereby generating files in the subdirectories of the existing modules %> mvn -N andromdapp:build -Dmodules=mda -Dfilter=java,hibernate (or mvn -f mda/pom.xml -Dfilter=java,hibernate) runs AndroMDA, but this time only using the Java and Hibernate cartridges (in that order) %> mvn -N andromdapp:build -Dmodules=mda -Dfilter=~java,hibernate (or mvn -f mda/pom.xml -Dfilter=~java,hibernate) runs AndroMDA, but this time using all cartridges *except* the Java and Hibernate cartridges %> mvn -N andromdapp:build -Dmodules=mda,core,web,app -Dfilter=java -Ddeploy runs AndroMDA using only the Java cartridge, rebuilds the core module and web module and deploys afterwards %> mvn -N andromdapp:build -Dconsole runs the AndroMDApp build goal in 'console' mode, once running, this allows you to execute any goal or subproject goal in the manner described above without having to specify the andromdapp:build goal or restarting maven (i.e. you can run the mda goal by typing 'mda', build the core module by type 'core', etc). Please note that you may use the '-o' flag at any time to avoid having Maven downloading any SNAPSHOT dependencies. Each module will install its artifact into the local Maven repository, this might be a directory looking like this: (Windows) C:\Documents and Settings\Vance Karimi\.m2\repository\demo-ejb3\ (*nix) /home/Vance Karimi/.maven/repository/demo-ejb3/ For questions or feature requests please use our forum: http://forum.andromda.org/ Good luck! -- The AndroMDA Team 1.1 plugins/samples/demo-ejb3/.cvsignore Index: .cvsignore =================================================================== target *.log 1.1 plugins/samples/demo-ejb3/pom.xml Index: pom.xml =================================================================== <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.andromda.demo.ejb3</groupId> <artifactId>demo-ejb3</artifactId> <packaging>pom</packaging> <version>1.0-SNAPSHOT</version> <name>Demo EJB3</name> <description>The Demo EJB3 Project.</description> <scm> <connection></connection> <url></url> </scm> <organization> <name></name> <url></url> </organization> <ciManagement> <system>continuum</system> <notifiers> <notifier> <type>mail</type> <configuration> <address></address> </configuration> </notifier> </notifiers> </ciManagement> <developers> <developer> <id></id> <name>Vance Karimi</name> <email></email> <organization></organization> <roles> <role>Developer</role> </roles> <timezone></timezone> </developer> </developers> <dependencyManagement> <dependencies> <dependency> <groupId>org.andromda.profiles.uml14</groupId> <artifactId>andromda-profile</artifactId> <version>3.2-SNAPSHOT</version> <type>xml.zip</type> <scope>runtime</scope> </dependency> <dependency> <groupId>org.andromda.cartridges</groupId> <artifactId>andromda-ejb3-cartridge</artifactId> <version>1.0-SNAPSHOT</version> <scope>runtime</scope> </dependency> <dependency> <groupId>org.andromda.cartridges</groupId> <artifactId>andromda-java-cartridge</artifactId> <version>3.2-SNAPSHOT</version> <scope>runtime</scope> </dependency> <dependency> <groupId>org.andromda.cartridges</groupId> <artifactId>andromda-bpm4struts-cartridge</artifactId> <version>3.2-SNAPSHOT</version> <scope>runtime</scope> </dependency> <dependency> <groupId>org.andromda.translationlibraries</groupId> <artifactId>andromda-ocl-query-library</artifactId> <version>3.2-SNAPSHOT</version> <scope>runtime</scope> </dependency> <!-- This dependency provides the ability to implement your business logic in an interpreted manner during development on your local machine --> <dependency> <groupId>org.andromda</groupId> <artifactId>andromda-script-wrappers</artifactId> <version>3.2-SNAPSHOT</version> <scope>runtime</scope> </dependency> <dependency> <groupId>commons-beanutils</groupId> <artifactId>commons-beanutils</artifactId> <version>1.7.0</version> </dependency> <dependency> <groupId>commons-collections</groupId> <artifactId>commons-collections</artifactId> <version>3.1</version> </dependency> <dependency> <groupId>commons-lang</groupId> <artifactId>commons-lang</artifactId> <version>2.1</version> </dependency> <dependency> <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> <version>1.0.4</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-j2ee</artifactId> <version>4.0.4-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jbossall-client</artifactId> <version>4.0.4-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-ejb3-client</artifactId> <version>4.0.4-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-ejb3x</artifactId> <version>4.0.4-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>ejb3-persistence</artifactId> <version>4.0.4-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-annotations-ejb3</artifactId> <version>4.0.4-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-serialization</artifactId> <version>4.0.4-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-remoting</artifactId> <version>4.0.4-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jnp-client</artifactId> <version>4.0.4-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-aop-jdk50-client</artifactId> <version>4.0.4-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-aspect-jdk50-client</artifactId> <version>4.0.4-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jbossws-client</artifactId> <version>4.0.4-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss</groupId> <artifactId>jboss-jaxrpc</artifactId> <version>4.0.4-GA</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-client</artifactId> <version>3.2.0-CR2</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-annotations</artifactId> <version>3.2.0-CR2</version> <scope>provided</scope> </dependency> <dependency> <groupId>xerces</groupId> <artifactId>xercesImpl</artifactId> <version>2.7.1</version> </dependency> <dependency> <groupId>org.apache.geronimo.specs</groupId> <artifactId>geronimo-activation_1.0.2_spec</artifactId> <version>1.0</version> </dependency> <dependency> <groupId>org.apache.geronimo.specs</groupId> <artifactId>geronimo-javamail_1.3.1_spec</artifactId> <version>1.0</version> </dependency> <dependency> <groupId>antlr</groupId> <artifactId>antlr</artifactId> <version>2.7.2</version> </dependency> <dependency> <groupId>commons-digester</groupId> <artifactId>commons-digester</artifactId> <version>1.7</version> <scope>runtime</scope> <exclusions> <exclusion> <groupId>xml-apis</groupId> <artifactId>xml-apis</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>commons-validator</groupId> <artifactId>commons-validator</artifactId> <version>1.1.4</version> </dependency> <dependency> <groupId>commons-fileupload</groupId> <artifactId>commons-fileupload</artifactId> <version>1.0</version> <scope>runtime</scope> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.4</version> <scope>provided</scope> </dependency> <dependency> <groupId>itext</groupId> <artifactId>itext</artifactId> <version>0.99</version> <scope>runtime</scope> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>jstl</artifactId> <version>1.1.2</version> <scope>runtime</scope> </dependency> <dependency> <groupId>taglibs</groupId> <artifactId>standard</artifactId> <version>1.1.1</version> <scope>runtime</scope> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>jsp-api</artifactId> <version>2.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>oro</groupId> <artifactId>oro</artifactId> <version>2.0.8</version> <scope>runtime</scope> </dependency> <dependency> <groupId>struts</groupId> <artifactId>struts</artifactId> <version>1.2.7</version> <exclusions> <exclusion> <groupId>commons-chain</groupId> <artifactId>commons-chain</artifactId> </exclusion> <exclusion> <groupId>commons-digester</groupId> <artifactId>commons-digester</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>struts-menu</groupId> <artifactId>struts-menu</artifactId> <version>2.3</version> </dependency> <dependency> <groupId>displaytag</groupId> <artifactId>displaytag</artifactId> <version>1.0</version> <scope>runtime</scope> <exclusions> <exclusion> <groupId>taglibs</groupId> <artifactId>standard</artifactId> </exclusion> <exclusion> <groupId>log4j</groupId> <artifactId>log4j</artifactId> </exclusion> </exclusions> </dependency> </dependencies> </dependencyManagement> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> </dependencies> <build> <defaultGoal>install</defaultGoal> <pluginManagement> <plugins> <plugin> <groupId>org.andromda.maven.plugins</groupId> <artifactId>andromda-multi-source-plugin</artifactId> <version>3.2-SNAPSHOT</version> <executions> <execution> <goals> <goal>add-source</goal> </goals> <configuration> <sourceDirectories> <directory>target/src</directory> </sourceDirectories> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.andromda.maven.plugins</groupId> <artifactId>andromda-maven-plugin</artifactId> <version>3.2-SNAPSHOT</version> </plugin> <plugin> <groupId>org.andromda.maven.plugins</groupId> <artifactId>andromdapp-maven-plugin</artifactId> <version>3.2-SNAPSHOT</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>2.2</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.5</source> <target>1.5</target> </configuration> </plugin> </plugins> </pluginManagement> </build> <modules> <module>mda</module> <module>common</module> <module>core</module> <module>web</module> <module>app</module> <module>client</module> </modules> <properties> <!-- Change this to generate to the correct MDA database mappings, For MySql use: MySQL For Hypersonic use: HypersonicSql For Oracle9i use: Oracle9i For DB2 use: DB2 For Informix use: InformixDB For MSSQL use: MSSQL For Pointbase use: PointBase For Postgres use: PostgreSQL For Sybase use: Sybase For SapDB use: SapDB For Derby use: Derby --> <sql.mappings> MySQL </sql.mappings> <!-- Change this for the appropriate database For MySql use: org.hibernate.dialect.MySQLDialect For MySql InnoDB use: org.hibernate.dialect.MySQLInnoDBDialect For MySql MyISAM use: org.hibernate.dialect.MySQLMyISAMDialect For Hypersonic use: org.hibernate.dialect.HSQLDialect For Oracle any version use: org.hibernate.dialect.OracleDialect For Oracle9i/10g use: org.hibernate.dialect.Oracle9Dialect For DB2 use: org.hibernate.dialect.DB2Dialect For Informix use: org.hibernate.dialect.InformixDialect For MSSQL use: org.hibernate.dialect.SQLServerDialect For Pointbase use: org.hibernate.dialect.PointbaseDialect For Postgres use: org.hibernate.dialect.PostgreSQLDialect For Sybase use: org.hibernate.dialect.SybaseDialect For Sybase Anywhere use: org.hibernate.dialect.SybaseAnywhereDialect For SapDB use: org.hibernate.dialect.SAPDBDialect For Progress use: org.hibernate.dialect.ProgressDialect For Derby use: org.hibernate.dialect.DerbyDialect --> <hibernate.dialect> org.hibernate.dialect.MySQLInnoDBDialect </hibernate.dialect> <!-- Change this to the correct database type mappings (for Jboss) For MySql use: mySQL For Hypersonic use: Hypersonic SQL For Oracle9i use: Oracle9i For DB2 use: DB2 For Informix use: InformixDB For MSSQL use: MS SQLSERVER2000 For Pointbase use: PointBase For Postgres use: PostgreSQL 7.2 For Sybase use: Sybase For SapDB use: SapDB For Derby use: Derby --> <jboss.typeMappings> mySQL </jboss.typeMappings> <jboss.home>${env.JBOSS_HOME}</jboss.home> <application.id>demo-ejb3</application.id> <application.package>org.andromda.demo.ejb3</application.package> <application.name>Demo EJB3</application.name> <application.version>1.0-SNAPSHOT</application.version> <dataSource.name>jdbc/${application.id}</dataSource.name> <dataSource>java:/${dataSource.name}</dataSource> </properties> <profiles> <profile> <id>local</id> <activation> <activeByDefault>true</activeByDefault> </activation> <properties> <!-- Change driver jar for appropriate database For MySQL use: mysql-connector-java-X-bin.jar For Hypersonic use: hsqldb.jar --> <jdbc.driver.jar>${jboss.home}/server/default/lib/hsqldb.jar</jdbc.driver.jar> <!-- Change driver for appropriate database For MySQL use: com.mysql.jdbc.Driver For Hypersonic use: org.hsqldb.jdbcDriver For Oracle9i use: oracle.jdbc.driver.OracleDriver For DB2 use: COM.ibm.db2.jdbc.app.DB2Driver For Informix use: com.informix.jdbc.IfxDriver For MSSQL use: com.microsoft.jdbc.sqlserver.SQLServerDriver For Pointbase use: com.pointbase.jdbc.jdbcUniversalDriver For Postgres use: org.postgresql.Driver For Sybase use: com.sybase.jdbc2.jdbc.SybDataSource For SapDB use: com.sap.dbtech.jdbc.DriverSapDB For Progress use: com.progress.sql.jdbc.JdbcProgressDriver For Derby use: org.apache.derby.jdbc.EmbeddedDriver --> <jdbc.driver> com.mysql.jdbc.Driver </jdbc.driver> <!-- Change connection url for appropriate database For MySQL use: jdbc:mysql://localhost:3306/demo-ejb3 For Hypersonic use: jdbc:hsqldb:hsql://127.0.0.1:1701 For Oracle9i use: jdbc:oracle:thin:@localhost:1521:yoursid For DB2 use: jdbc:db2:demo-ejb3 For Informix use: jdbc:informix-sqli://localhost:1557/demo-ejb3:INFORMIXSERVER=myserver For MSSQL use: jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=demo-ejb3 For Pointbase use: jdbc:pointbase:server://@pointbase.server@:@pointbase.port/pointbase.demo-ejb3@,new For Postgres use: jdbc:postgresql://localhost/demo-ejb3 For Sybase use: jdbc:sybase:Tds:localhost:5000/demo-ejb3?JCONNECT_VERSION=6 For SapDB use: jdbc:sapdb://127.0.0.1/demo-ejb3 For Progress use: jdbc:JdbcProgress:T:localhost:3305:demo-ejb3 --> <jdbc.url> jdbc:mysql://localhost:3306/demo-ejb3 </jdbc.url> <jdbc.username>sa</jdbc.username> <jdbc.password></jdbc.password> <!-- Change exception sorder class name for appropriate database For MySQL use: org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter For Hypersonic use: org.jboss.resource.adapter.jdbc.vendor.DummyExceptionSorter For Oracle9i use: org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter For DB2 use: org.jboss.resource.adapter.jdbc.vendor.DummyExceptionSorter For Informix use: org.jboss.resource.adapter.jdbc.vendor.InformixExceptionSorter For MSSQL use: org.jboss.resource.adapter.jdbc.vendor.DummyExceptionSorter For Pointbase use: org.jboss.resource.adapter.jdbc.vendor.DummyExceptionSorter For Postgres use: org.jboss.resource.adapter.jdbc.vendor.DummyExceptionSorter For Sybase use: org.jboss.resource.adapter.jdbc.vendor.SybaseExceptionSorter For SapDB use: org.jboss.resource.adapter.jdbc.vendor.DummyExceptionSorter For Progress use: org.jboss.resource.adapter.jdbc.vendor.DummyExceptionSorter --> <jdbc.exception.sorter> org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter </jdbc.exception.sorter> <!-- Change this to the host on which your webservice will be deployed --> <webservice.host>localhost</webservice.host> <!-- Change this the port on which your webservice will be deploy --> <webservice.port>8080</webservice.port> </properties> <build> <pluginManagement> <plugins> <plugin> <groupId>org.andromda.maven.plugins</groupId> <artifactId>andromdapp-maven-plugin</artifactId> <version>3.2-SNAPSHOT</version> <!-- provides the injection of the script wrapper support into the class files (this should only be done when developing locally), uncomment this executions element to enable <executions> <execution> <id>instrument-scripts</id> <goals> <goal>instrument-scripts</goal> </goals> </execution> </executions> --> <configuration> <scriptWrapper>org.andromda.scriptwrappers.GroovyScriptWrapper</scriptWrapper> <locations> <location> <rootPath>${pom.basedir}/src/main/java</rootPath> <!-- adjust these to include or exclude specific files, by default all files found in the rootPath are considered <includes> <include>relative/path/to/file/to/include/SomeClass.java</include> </includes> <excludes> <exclude>relative/path/to/file/to/include/SomeClass.java</exclude> </excludes> --> </location> </locations> </configuration> </plugin> </plugins> </pluginManagement> </build> </profile> <profile> <id>development</id> <activation> <property> <name>env</name> <value>dev</value> </property> </activation> <properties> <jdbc.driver.jar></jdbc.driver.jar> <jdbc.driver></jdbc.driver> <jdbc.url></jdbc.url> <jdbc.username></jdbc.username> <jdbc.password></jdbc.password> <jdbc.exception.sorter></jdbc.exception.sorter> <webservice.host></webservice.host> <webservice.port></webservice.port> </properties> </profile> <profile> <id>validation</id> <activation> <property> <name>env</name> <value>val</value> </property> </activation> <properties> <jdbc.driver.jar></jdbc.driver.jar> <jdbc.driver></jdbc.driver> <jdbc.url></jdbc.url> <jdbc.username></jdbc.username> <jdbc.password></jdbc.password> <jdbc.exception.sorter></jdbc.exception.sorter> <webservice.host></webservice.host> <webservice.port></webservice.port> </properties> </profile> <profile> <id>production</id> <activation> <property> <name>env</name> <value>prod</value> </property> </activation> <properties> <jdbc.driver.jar></jdbc.driver.jar> <jdbc.driver></jdbc.driver> <jdbc.url></jdbc.url> <jdbc.username></jdbc.username> <jdbc.password></jdbc.password> <jdbc.exception.sorter></jdbc.exception.sorter> <webservice.host></webservice.host> <webservice.port></webservice.port> </properties> </profile> </profiles> <repositories> <repository> <id>andromda</id> <name>AndroMDA Repository</name> <url>http://team.andromda.org/maven2</url> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>andromda</id> <name>AndroMDA Repository</name> <url>http://team.andromda.org/maven2</url> </pluginRepository> </pluginRepositories> <prerequisites> <maven>2.0.1</maven> </prerequisites> </project> 1.1 plugins/samples/demo-ejb3/.project Index: .project =================================================================== <projectDescription> <name>demo-ejb3</name> <comment/> <projects/> <buildSpec> <buildCommand> <name>org.eclipse.jdt.core.javabuilder</name> <arguments/> </buildCommand> </buildSpec> <natures> <nature>org.eclipse.jdt.core.javanature</nature> </natures> </projectDescription> 1.1 plugins/samples/demo-ejb3/wstools.bat Index: wstools.bat =================================================================== o:\dev\jboss-5.0.0.Alpha\bin\wstools.bat -cp ".;./core/target/src" -config jbosswsConfig.xml 1.1 plugins/samples/demo-ejb3/config.xml Index: config.xml =================================================================== <!-- C:\jboss\jboss-head\ejb3\docs\tutorial\webservice>wscompile.bat -import -keep -mapping jaxrpc-mapping.xml -s src config.xml --> <configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config"> <wsdl location="http://localhost/ejb3demo-ws/services/CustomerService?wsdl" packageName="org.andromda.demo.ejb3.customer"/> </configuration> 1.1 plugins/samples/demo-ejb3/.classpath Index: .classpath =================================================================== <classpath> <classpathentry kind="src" path="client/src/main/java"/> <classpathentry kind="src" path="common/target/src"/> <classpathentry kind="src" path="core/src/main/java"/> <classpathentry kind="src" path="core/target/src"/> <classpathentry kind="src" path="web/target/src"/> <classpathentry kind="var" path="M2_REPO/antlr/antlr/2.7.2/antlr-2.7.2.jar"/> <classpathentry kind="var" path="M2_REPO/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar"/> <classpathentry kind="var" path="M2_REPO/commons-collections/commons-collections/3.1/commons-collections-3.1.jar"/> <classpathentry kind="var" path="M2_REPO/commons-lang/commons-lang/2.1/commons-lang-2.1.jar"/> <classpathentry kind="var" path="M2_REPO/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar"/> <classpathentry kind="var" path="M2_REPO/commons-validator/commons-validator/1.1.4/commons-validator-1.1.4.jar"/> <classpathentry kind="var" path="M2_REPO/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar"/> <classpathentry kind="var" path="M2_REPO/org/apache/geronimo/specs/geronimo-activation_1.0.2_spec/1.0/geronimo-activation_1.0.2_spec-1.0.jar"/> <classpathentry kind="var" path="M2_REPO/org/apache/geronimo/specs/geronimo-javamail_1.3.1_spec/1.0/geronimo-javamail_1.3.1_spec-1.0.jar"/> <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-annotations/3.2.0-CR2/hibernate-annotations-3.2.0-CR2.jar"/> <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-client/3.2.0-CR2/hibernate-client-3.2.0-CR2.jar"/> <classpathentry kind="var" path="M2_REPO/org/jboss/ejb3-persistence/4.0.4-GA/ejb3-persistence-4.0.4-GA.jar"/> <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-annotations-ejb3/4.0.4-GA/jboss-annotations-ejb3-4.0.4-GA.jar"/> <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-aop-jdk50-client/4.0.4-GA/jboss-aop-jdk50-client-4.0.4-GA.jar"/> <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-aspect-jdk50-client/4.0.4-GA/jboss-aspect-jdk50-client-4.0.4-GA.jar"/> <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-ejb3-client/4.0.4-GA/jboss-ejb3-client-4.0.4-GA.jar"/> <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-ejb3x/4.0.4-GA/jboss-ejb3x-4.0.4-GA.jar"/> <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-j2ee/4.0.4-GA/jboss-j2ee-4.0.4-GA.jar"/> <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-remoting/4.0.4-GA/jboss-remoting-4.0.4-GA.jar"/> <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-serialization/4.0.4-GA/jboss-serialization-4.0.4-GA.jar"/> <classpathentry kind="var" path="M2_REPO/org/jboss/jbossall-client/4.0.4-GA/jbossall-client-4.0.4-GA.jar"/> <classpathentry kind="var" path="M2_REPO/org/jboss/jbossws-client/4.0.4-GA/jbossws-client-4.0.4-GA.jar"/> <classpathentry kind="var" path="M2_REPO/org/jboss/jnp-client/4.0.4-GA/jnp-client-4.0.4-GA.jar"/> <classpathentry kind="var" path="M2_REPO/struts/struts/1.2.7/struts-1.2.7.jar"/> <classpathentry kind="var" path="M2_REPO/xerces/xercesImpl/2.7.1/xercesImpl-2.7.1.jar"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="output" path="target/classes"/> </classpath> 1.1 plugins/samples/demo-ejb3/jbosswsConfig.xml Index: jbosswsConfig.xml =================================================================== <?xml version="1.0" encoding="UTF-8"?> <configuration xmlns="http://www.jboss.org/jbossws-tools" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.jboss.org/jbossws-tools http://www.jboss.org/jbossws-tools/schema/jbossws-tool_1_0.xsd"> <wsdl-java file="http://localhost/ejb3demo-ws/services/CustomerService?wsdl"> <mapping file="jaxrpc-mapping.xml"/> </wsdl-java> </configuration> <!-- C:\jboss\jboss-head\ejb3\docs\tutorial\webservice>wscompile.bat -import -keep -mapping jaxrpc-mapping.xml -s src config.xml --> <!-- <configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config"> <wsdl location="http://localhost:8080/ejb3demo3-ws/services/TicketService?wsdl" packageName="org.andromda.demo3.ejb3"/> </configuration> --> <!-- <configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config"> <service name="TestService" targetNamespace="http://org.andromda.demo3.ejb3.test/TicketService" typeNamespace="http://org.andromda.demo3.ejb3.test/TicketService/types" packageName="org.andromda.demo3.ejb3.test"> <interface name="org.andromda.demo3.ejb3.test.TicketServiceWSInterface"/> </service> </configuration> --> 1.1 plugins/samples/demo-ejb3/core/src/main/java/org/andromda/demo/ejb3/vehicle/VehicleManagerBean.java Index: VehicleManagerBean.java =================================================================== // license-header java merge-point // // Generated by: SessionBeanImpl.vsl in andromda-ejb3-cartridge. // package org.andromda.demo.ejb3.vehicle; import org.andromda.demo.ejb3.account.Account; import org.andromda.demo.ejb3.account.AccountException; /** * @see org.andromda.demo.ejb3.vehicle.VehicleManagerBean */ /** * Do not specify the javax.ejb.Stateless annotation * Instead, define the session bean in the ejb-jar.xml descriptor * @javax.ejb.Stateless */ /** * Uncomment to enable webservices for VehicleManagerBean *@javax.jws.WebService(endpointInterface = "org.andromda.demo.ejb3.vehicle.VehicleManagerWSInterface") */ public class VehicleManagerBean extends org.andromda.demo.ejb3.vehicle.VehicleManagerBase { // --------------- Constructors --------------- public VehicleManagerBean() { super(); } // -------- Business Methods Impl -------------- /** * @see org.andromda.demo.ejb3.vehicle.VehicleManagerBase#addMotorcycle(org.andromda.demo.ejb3.vehicle.Motocycle) */ protected void handleAddMotorcycle(org.andromda.demo.ejb3.vehicle.Motocycle mc) throws java.lang.Exception { getMotocycleDao().create(mc); // Test session bean injection insertAccount(); } private void insertAccount() { System.out.println("Inserting account..."); Account account = new Account("test"); try { accountManager.addAccount(account); } catch (AccountException e) { // TODO Auto-generated catch block e.printStackTrace(); } System.out.println("Insert complete."); } /** * @see org.andromda.demo.ejb3.vehicle.VehicleManagerBase#addCar(org.andromda.demo.ejb3.vehicle.Car) */ protected void handleAddCar(org.andromda.demo.ejb3.vehicle.Car car) throws java.lang.Exception { getCarDao().create(car); } /** * @see org.andromda.demo.ejb3.vehicle.VehicleManagerBase#addVehicle(org.andromda.demo.ejb3.vehicle.Vehicle) */ protected void handleAddVehicle(org.andromda.demo.ejb3.vehicle.Vehicle vehicle) throws java.lang.Exception { getVehicleDao().create(vehicle); } // -------- Lifecycle Callback Impl -------------- } 1.1 plugins/samples/demo-ejb3/core/src/main/java/org/andromda/demo/ejb3/rental/RentalServiceBean.java Index: RentalServiceBean.java =================================================================== // license-header java merge-point // // Generated by: SessionBeanImpl.vsl in andromda-ejb3-cartridge. // package org.andromda.demo.ejb3.rental; import javax.jms.JMSException; import javax.jms.ObjectMessage; import javax.jms.Queue; imp... [truncated message content] |
From: Vance K. <va...@us...> - 2006-10-06 06:51:26
|
User: vancek Date: 06/10/05 23:51:23 plugins/samples/demo-ejb3/web/src/main/properties - New directory |
From: Vance K. <va...@us...> - 2006-10-06 06:51:26
|
User: vancek Date: 06/10/05 23:51:23 plugins/samples/demo-ejb3/web/src - New directory |
From: Vance K. <va...@us...> - 2006-10-06 06:51:25
|
User: vancek Date: 06/10/05 23:51:22 plugins/samples/demo-ejb3/mda/src/main/config - New directory |
From: Vance K. <va...@us...> - 2006-10-06 06:51:24
|
User: vancek Date: 06/10/05 23:51:22 plugins/samples/demo-ejb3/mda/src/main/config/mappings - New directory |
From: Vance K. <va...@us...> - 2006-10-06 06:51:24
|
User: vancek Date: 06/10/05 23:51:18 plugins/samples/demo-ejb3/core/src/main/java/org/andromda/demo/ejb3/user - New directory |
From: Vance K. <va...@us...> - 2006-10-06 06:51:24
|
User: vancek Date: 06/10/05 23:51:22 plugins/samples/demo-ejb3/web - New directory |
From: Vance K. <va...@us...> - 2006-10-06 06:51:24
|
User: vancek Date: 06/10/05 23:51:22 plugins/samples/demo-ejb3/mda/src/main/uml - New directory |
From: Vance K. <va...@us...> - 2006-10-06 06:51:24
|
User: vancek Date: 06/10/05 23:51:19 plugins/samples/demo-ejb3/mda/src/main - New directory |
From: Vance K. <va...@us...> - 2006-10-06 06:51:24
|
User: vancek Date: 06/10/05 23:51:18 plugins/samples/demo-ejb3/mda - New directory |
From: Vance K. <va...@us...> - 2006-10-06 06:51:24
|
User: vancek Date: 06/10/05 23:51:23 plugins/samples/demo-ejb3/web/src/main - New directory |
From: Vance K. <va...@us...> - 2006-10-06 06:51:21
|
User: vancek Date: 06/10/05 23:51:18 plugins/samples/demo-ejb3/core/src/main/java/org/andromda/demo/ejb3/vehicle - New directory |
From: Vance K. <va...@us...> - 2006-10-06 06:51:20
|
User: vancek Date: 06/10/05 23:51:17 plugins/samples/demo-ejb3/core/src/main/java/org/andromda/demo/ejb3/rider - New directory |
From: Vance K. <va...@us...> - 2006-10-06 06:51:19
|
User: vancek Date: 06/10/05 23:51:19 plugins/samples/demo-ejb3/mda/src - New directory |
From: Vance K. <va...@us...> - 2006-10-06 06:51:18
|
User: vancek Date: 06/10/05 23:51:12 plugins/samples/demo-ejb3/core/src/main/java/org/andromda/demo/ejb3/bicycle - New directory |