not require a constructor argument. The correct configuration snippet
for such a case is included at the end of the tutorial.
ok missed that sory
It all depends on how you access your DAO from your web pages.
Normally you only access your DAO through a manager class, which is
where the transactions get started. If you want your DAO to be
transactioned, you can either add the annotation @Transaction or
change the Spring config to explicitly add transactions to your DAO.
how would i access my doa through a manager in my action.
i now let it be injected by spring with this:
<bean id="eventSpanDaoManager"
class="nl.topticketline.topnet.dao.EventSpanDaoHibernateManager">
<property name="sessionFactory" ref="sessionFactory"/>
</bean>
and this:
<bean id="eventSpanAction"
class="nl.topticketline.topnet.action.EventSpanAction"
scope="prototype"
autowire="default">
<property name="eventSpanManager" ref="eventSpanDaoManager"/>
<property name="companyManager" ref="companyManager"/>
<property name="userManager" ref="myUserManager"/>
</bean>
in my action i do this:
...
eventSpanManager.save(eventSpan);
...
thanks tibi
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]