Chad thanks for the quick reply, just one question re where you said

Quote:
You can use spring for that, or if you wanted you could generate just regular 
java services with the java cartridge (of course they don't provide anything, 
like transaction support, etc). 
(end of quote)




How would I force the generation of a <<service>> class using only the java  
cartridge? I've tried two approaches to date, both setup via the maven/andromda 
wizard. One has hibernate+spring+bpm4struts while the other has just 
hibernate+java cartidges. I was hoping the 2nd one would gen without an ejb 
session bean as I wasn't including the ejb cartridge but no joy.



Do you mean I should generate with java cartridge only OR is there some other 
setting or cartidge I'd need set to force non use of ejb for my service class?? 
 Below is a copy of the project.xml which has only java & hibernate (but gens 
an ejb session bean for the Service class) ....



<?xml version="1.0" encoding="UTF-8"?>



<project>

    <extend>../project.xml</extend>

    <name>TestMavenAndroMDA MDA</name>

    <artifactId>testMavenAndroMDA-mda</artifactId>

    <shortDescription>${pom.name} Component</shortDescription>

    <description>Contains the ${pom.name} module</description>

    <dependencies>

        <dependency>

            <groupId>andromda</groupId>

            <artifactId>andromda-profile</artifactId>

            <version>${andromda.version}</version>

            <type>xml.zip</type>

        </dependency>

        <dependency>

            <groupId>andromda</groupId>

             <artifactId>maven-andromda-plugin</artifactId>

             <version>${andromda.version}</version>

             <type>plugin</type>

             <properties>

                 <languageMappingsUri>Java</languageMappingsUri>

                 <wrapperMappingsUri>JavaWrapper</wrapperMappingsUri>

                 <sqlMappingsUri>${sql.mappings}</sqlMappingsUri>

                 <jdbcMappingsUri>JDBC</jdbcMappingsUri>

                 <maxSqlNameLength>30</maxSqlNameLength>

                 <foreignKeySuffix>_FK</foreignKeySuffix>

                 <ejbJndiNamePrefix>${pom.groupId}</ejbJndiNamePrefix>

                 <!-- these masking properties allow you to configure the way

                      your model element names are generated -->

                 <classifierNameMask>none</classifierNameMask>

                 <classifierPropertyNameMask>none</classifierPropertyNameMask>

                 <operationNameMask>none</operationNameMask>

                 <roleNameMask>none</roleNameMask>

                 <enumerationNameMask>none</enumerationNameMask>

                 <enumerationLiteralNameMask>none</enumerationLiteralNameMask>

                 <entityNameMask>none</entityNameMask>

                 <entityPropertyNameMask>none</entityPropertyNameMask>

                 <parameterNameMask>none</parameterNameMask>

             </properties>

        </dependency>

        <!-- specify and configure our cartridges -->

        <dependency>

            <groupId>andromda</groupId>

            <artifactId>andromda-hibernate-cartridge</artifactId>

            <version>${andromda.version}</version>

            <properties>

                <hibernateTypeMappingsUri>Hibernate</hibernateTypeMappingsUri>

                <dataSource>${dataSource}</dataSource>

                <hibernateDialect>${hibernate.db.dialect}</hibernateDialect>

                
<hibernateTransactionManagerLookup>${hibernate.transaction.manager.lookup}</hibernateTransactionManagerLookup>

                <hibernateShowSql>${hibernate.db.showSql}</hibernateShowSql>

                
<hibernateInheritanceStrategy>subclass</hibernateInheritanceStrategy>

                <customTypesPackage>${pom.package}</customTypesPackage>

                <hibernateJdbcBatchSize>0</hibernateJdbcBatchSize>

                <hibernateUseQueryCache>false</hibernateUseQueryCache>

                
<hibernateQueryUseNamedParameters>true</hibernateQueryUseNamedParameters>

                
<compositionDefinesEagerLoading>true</compositionDefinesEagerLoading>

                
<hibernateCacheProvider>net.sf.hibernate.cache.EhCacheProvider</hibernateCacheProvider>

                
<hibernateQueryCacheFactory>net.sf.hibernate.cache.StandardQueryCacheFactory</hibernateQueryCacheFactory>

                <entities>${maven.andromda.core.generated.dir}</entities>

                <entity-impls>${maven.andromda.core.manual.dir}</entity-impls>

                
<session-beans>${maven.andromda.core.generated.dir}</session-beans>

                <session-impls>${maven.andromda.core.manual.dir}</session-impls>

                
<configuration>${maven.andromda.core.generated.dir}</configuration>

                <!-- uncomment to enable EJB security -->

                <!-- <securityRealm>${pom.groupId}</securityRealm> -->

            </properties>

        </dependency>

        <dependency>

            <groupId>andromda</groupId>

            <artifactId>andromda-java-cartridge</artifactId>

            <version>${andromda.version}</version>

            <properties>

                
<enumerations>${maven.andromda.common.generated.dir}</enumerations>

                <exceptions>${maven.andromda.common.generated.dir}</exceptions>

                
<value-objects>${maven.andromda.common.generated.dir}</value-objects>

            </properties>

        </dependency>

        <dependency>

            <groupId>andromda</groupId>

            <artifactId>andromda-ocl-validation-library</artifactId>

            <version>${andromda.version}</version>

        </dependency>

        <dependency>

            <groupId>andromda</groupId>

            <artifactId>andromda-ocl-query-library</artifactId>

            <version>${andromda.version}</version>

        </dependency>

    </dependencies>

</project>
--
Audere est Facere
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=744#744
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Andromda-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to