Hi,


I'm implementing a DAO with Spring+Hibernate, I want to implement a Schema-based Declarative Transaction Management of the type:


Code:
<bean id="portfolioService" class="springhibernate.PortfolioService">
  <property name="portfolioDAO" ref="portfolioDAOTemplate"></property>
 </bean>

 <bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
  <property name="sessionFactory" ref="sessionFactory" />
 </bean>

 <aop:config>
  <aop:pointcut id="serviceMethods" expression="execution(* springhibernate.IPortfolioService.*(..))" />
  <aop:advisor  advice-ref="txAdvice" pointcut-ref="serviceMethods" />
 </aop:config>
 
 <tx:advice id="txAdvice"  transaction-manager="transactionManager" >
  <tx:attributes>
   <tx:method name="*" propagation="REQUIRES_NEW" />
  </tx:attributes>
 </tx:advice>
My question is if is possible to apply the pointcut to all methods of all classes that belong to the DAO interface package, I mean, the interface in the above example is "springhibernate.IPortfolioService" so I want to have the cutpoint applied to all classes and methods belong to the package "springhibernate"

Thanks!