How do i turn on the serivce locator code generation in andromda.xml? It is 
part of the Spring cartridge right?



here's what i'm doing in andromda.xml



<andromda>

&nbsp; <properties>

&nbsp; &nbsp; <property 
name="modelValidation">$&#123;andromda.modelValidation&#125;</property>

&nbsp; &nbsp; <property 
name="xmlValidation">$&#123;andromda.xmlValidation&#125;</property>

&nbsp; &nbsp; <property name="cartridgeFilter">spring,hibernate,java</property>

&nbsp; </properties>

&nbsp; <models>

&nbsp; &nbsp; <model lastModifiedCheck="true">

&nbsp; &nbsp; &nbsp; 
<uri>file&#58;$&#123;basedir&#125;/mda/src/uml/Model.xml</uri>

&nbsp; &nbsp; &nbsp; <!-- moduleSearchLocations>

&nbsp; &nbsp; &nbsp; &nbsp; 
<location>$&#123;basedir&#125;/mda/modules</location>

&nbsp; &nbsp; &nbsp; </moduleSearchLocations-->

&nbsp; &nbsp; &nbsp; <modelPackages processAll="false">

&nbsp; &nbsp; &nbsp; &nbsp; <modelPackage 
process="true">mypackage</modelPackage>

&nbsp; &nbsp; &nbsp; </modelPackages>

&nbsp; &nbsp; </model>

&nbsp; </models>

&nbsp; <mappingsSearchLocations>

&nbsp; &nbsp;&nbsp; <location>$&#123;basedir&#125;/mda/src/mappings</location>

&nbsp; </mappingsSearchLocations>

&nbsp; <namespaces>

&nbsp; &nbsp; <namespace name="default">

&nbsp; &nbsp; &nbsp; <properties>

&nbsp; &nbsp; &nbsp; &nbsp; <property 
name="hibernateVersion">$&#123;hibernate.version&#125;</property>

&nbsp; &nbsp; &nbsp; &nbsp; <property 
name="hibernateInheritanceStrategy">$&#123;hibernate.inheritance.strategy&#125;</property>

&nbsp; &nbsp; &nbsp; &nbsp; <property 
name="hibernateQueryUseNamedParameters">true</property>

&nbsp; &nbsp; &nbsp; &nbsp; <property 
name="ejbJndiNamePrefix">$&#123;application.id&#125;</property>

&nbsp; &nbsp; &nbsp; &nbsp; <property name="languageMappingsUri">Java</property>

&nbsp; &nbsp; &nbsp; &nbsp; <property 
name="wrapperMappingsUri">JavaWrapper</property>

&nbsp; &nbsp; &nbsp; &nbsp; <property 
name="sqlMappingsUri">$&#123;sql.mappings&#125;</property>

&nbsp; &nbsp; &nbsp; &nbsp; <property name="jdbcMappingsUri">JDBC</property>

&nbsp; &nbsp; &nbsp; &nbsp; <property name="maxSqlNameLength">30</property>

&nbsp; &nbsp; &nbsp; &nbsp; <property name="foreignKeySuffix">_FK</property>

&nbsp; &nbsp; &nbsp; &nbsp; <property 
name="driver">$&#123;dataSource.driver.class&#125;</property> 

&nbsp; &nbsp; &nbsp; &nbsp; <property 
name="username">$&#123;dataSource.user&#125;</property> 

&nbsp; &nbsp; &nbsp; &nbsp; <property 
name="password">$&#123;dataSource.password&#125;</property> 

&nbsp; &nbsp; &nbsp; &nbsp; <property 
name="connectionUrl">$&#123;dataSource.url&#125;</property>

&nbsp; &nbsp; &nbsp; &nbsp; <!-- to remove any dependency on EJB, comment the 
following property -->

&nbsp; &nbsp; &nbsp; &nbsp; <property 
name="session-ejbs">$&#123;andromda.core.generated.dir&#125;</property> 

&nbsp; &nbsp; &nbsp; &nbsp; <property 
name="services">$&#123;andromda.core.generated.dir&#125;</property>

&nbsp; &nbsp; &nbsp; &nbsp; <property 
name="service-impls">$&#123;andromda.core.manual.dir&#125;</property>

&nbsp; &nbsp; &nbsp; &nbsp; <property 
name="daos">$&#123;andromda.core.generated.dir&#125;</property>

&nbsp; &nbsp; &nbsp; &nbsp; <property 
name="dao-impls">$&#123;andromda.core.manual.dir&#125;</property>

&nbsp; &nbsp; &nbsp; &nbsp; <property 
name="entities">$&#123;andromda.core.generated.dir&#125;</property>

&nbsp; &nbsp; &nbsp; &nbsp; <property 
name="entity-impls">$&#123;andromda.core.manual.dir&#125;</property>

&nbsp; &nbsp; &nbsp; </properties>

&nbsp; &nbsp; </namespace>

&nbsp; &nbsp; <namespace name="spring">

&nbsp; &nbsp; &nbsp; <properties>

&nbsp; &nbsp; &nbsp; &nbsp; <property 
name="spring-configuration">$&#123;andromda.core.generated.dir&#125;</property>

&nbsp; &nbsp; &nbsp; &nbsp; <!-- property 
name="serviceAccessorPattern">$&#123;application.package&#125;.ServiceLocator.instance&#40;&#41;.get&#123;1&#125;&#40;&#41;</property
 -->

&nbsp; &nbsp; &nbsp; &nbsp; <property 
name="hibernateShowSql">$&#123;hibernate.db.showSql&#125;</property>

&nbsp; &nbsp; &nbsp; &nbsp; <property 
name="hibernateDialect">$&#123;hibernate.db.dialect&#125;</property>

&nbsp; &nbsp; &nbsp; &nbsp; <property 
name="hibernateHbm2DDLAuto">update</property>

&nbsp; &nbsp; &nbsp; &nbsp; <property 
name="hibernateUseQueryCache">false</property>

&nbsp; &nbsp; &nbsp; &nbsp; <property 
name="springTypesPackage">$&#123;application.package&#125;</property>

&nbsp; &nbsp; &nbsp; &nbsp; <property 
name="manageableServiceLocatorName">ManageableServiceLocator</property>

&nbsp; &nbsp; &nbsp; &nbsp; <property 
name="clientServiceLocatorName">ClientServiceLocator</property>

&nbsp; &nbsp; &nbsp; </properties>

&nbsp; &nbsp; </namespace>

&nbsp; &nbsp; <namespace name="hibernate">

&nbsp; &nbsp; &nbsp; <properties>

&nbsp; &nbsp; &nbsp; &nbsp; <property 
name="hibernateTypeMappingsUri">Hibernate</property>

&nbsp; &nbsp; &nbsp; &nbsp; <property 
name="hibernateInheritanceStrategy">$&#123;hibernate.inheritance.strategy&#125;</property>

&nbsp; &nbsp; &nbsp; &nbsp; <property 
name="defaultHibernateGeneratorClass">$&#123;hibernate.generatorClass&#125;</property>

&nbsp; &nbsp; &nbsp; &nbsp; <property 
name="hibernateDefaultCascade">none</property>

&nbsp; &nbsp; &nbsp; &nbsp; <property 
name="customTypesPackage">$&#123;application.package&#125;</property>

&nbsp; &nbsp; &nbsp; &nbsp; <property 
name="compositionDefinesEagerLoading">true</property>

&nbsp; &nbsp; &nbsp; </properties>

&nbsp; &nbsp; </namespace>

&nbsp; &nbsp; <namespace name="java">

&nbsp; &nbsp; &nbsp; <properties>

&nbsp; &nbsp; &nbsp; &nbsp; <property 
name="enumerations">$&#123;andromda.core.generated.dir&#125;</property>

&nbsp; &nbsp; &nbsp; &nbsp; <property 
name="exceptions">$&#123;andromda.core.generated.dir&#125;</property>

&nbsp; &nbsp; &nbsp; &nbsp; <property 
name="value-objects">$&#123;andromda.core.generated.dir&#125;</property>

&nbsp; &nbsp; &nbsp; </properties>

&nbsp; &nbsp; </namespace>

&nbsp; </namespaces>&nbsp; 

</andromda>




_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=1686#1686
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to