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> <properties> <property name="modelValidation">${andromda.modelValidation}</property> <property name="xmlValidation">${andromda.xmlValidation}</property> <property name="cartridgeFilter">spring,hibernate,java</property> </properties> <models> <model lastModifiedCheck="true"> <uri>file:${basedir}/mda/src/uml/Model.xml</uri> <!-- moduleSearchLocations> <location>${basedir}/mda/modules</location> </moduleSearchLocations--> <modelPackages processAll="false"> <modelPackage process="true">mypackage</modelPackage> </modelPackages> </model> </models> <mappingsSearchLocations> <location>${basedir}/mda/src/mappings</location> </mappingsSearchLocations> <namespaces> <namespace name="default"> <properties> <property name="hibernateVersion">${hibernate.version}</property> <property name="hibernateInheritanceStrategy">${hibernate.inheritance.strategy}</property> <property name="hibernateQueryUseNamedParameters">true</property> <property name="ejbJndiNamePrefix">${application.id}</property> <property name="languageMappingsUri">Java</property> <property name="wrapperMappingsUri">JavaWrapper</property> <property name="sqlMappingsUri">${sql.mappings}</property> <property name="jdbcMappingsUri">JDBC</property> <property name="maxSqlNameLength">30</property> <property name="foreignKeySuffix">_FK</property> <property name="driver">${dataSource.driver.class}</property> <property name="username">${dataSource.user}</property> <property name="password">${dataSource.password}</property> <property name="connectionUrl">${dataSource.url}</property> <!-- to remove any dependency on EJB, comment the following property --> <property name="session-ejbs">${andromda.core.generated.dir}</property> <property name="services">${andromda.core.generated.dir}</property> <property name="service-impls">${andromda.core.manual.dir}</property> <property name="daos">${andromda.core.generated.dir}</property> <property name="dao-impls">${andromda.core.manual.dir}</property> <property name="entities">${andromda.core.generated.dir}</property> <property name="entity-impls">${andromda.core.manual.dir}</property> </properties> </namespace> <namespace name="spring"> <properties> <property name="spring-configuration">${andromda.core.generated.dir}</property> <!-- property name="serviceAccessorPattern">${application.package}.ServiceLocator.instance().get{1}()</property --> <property name="hibernateShowSql">${hibernate.db.showSql}</property> <property name="hibernateDialect">${hibernate.db.dialect}</property> <property name="hibernateHbm2DDLAuto">update</property> <property name="hibernateUseQueryCache">false</property> <property name="springTypesPackage">${application.package}</property> <property name="manageableServiceLocatorName">ManageableServiceLocator</property> <property name="clientServiceLocatorName">ClientServiceLocator</property> </properties> </namespace> <namespace name="hibernate"> <properties> <property name="hibernateTypeMappingsUri">Hibernate</property> <property name="hibernateInheritanceStrategy">${hibernate.inheritance.strategy}</property> <property name="defaultHibernateGeneratorClass">${hibernate.generatorClass}</property> <property name="hibernateDefaultCascade">none</property> <property name="customTypesPackage">${application.package}</property> <property name="compositionDefinesEagerLoading">true</property> </properties> </namespace> <namespace name="java"> <properties> <property name="enumerations">${andromda.core.generated.dir}</property> <property name="exceptions">${andromda.core.generated.dir}</property> <property name="value-objects">${andromda.core.generated.dir}</property> </properties> </namespace> </namespaces> </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