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

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

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

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

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

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

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

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

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

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

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

#if &#40;$hibernateVersion == "2"&#41;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="sessionFactory">org.springframework.orm.hibernate.LocalSessionFactoryBean</property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="localTransactionManager">org.springframework.orm.hibernate.HibernateTransactionManager</property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="hibernateCacheProvider">net.sf.hibernate.cache.EhCacheProvider</property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="hibernateQueryCacheFactory">net.sf.hibernate.cache.StandardQueryCacheFactory</property>

#else

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="sessionFactory">org.springframework.orm.hibernate3.LocalSessionFactoryBean</property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="localTransactionManager">org.springframework.orm.hibernate3.HibernateTransactionManager</property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="hibernateCacheProvider">org.hibernate.cache.EhCacheProvider</property>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <property 
name="hibernateQueryCacheFactory">org.hibernate.cache.StandardQueryCacheFactory</property>

#end

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

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

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

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

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

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

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

#if &#40;$ear&#41;

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

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

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <!-- uncomment to 
enable EJB security

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

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-->

#end

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

&nbsp; &nbsp; &nbsp; &nbsp; </namespace>



If you take a look at the above, you'll see the template for generating the 
andromda.xml specifies the correct information when you generate based on the 
hibernate version, you must have an old andromdapp plugin.  The latest one has 
the correct setup: 
http://team.andromda.org/maven/andromda/plugins/maven-andromdapp-plugin-3.1-RC1-SNAPSHOT.jar
--
Chad Brandon - [EMAIL PROTECTED]

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


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP, 
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to