Hi Tibi,
This happens whey you extend GenericManager in you PersonManager
Interface and GenericManagerImpl in your PersonManagerImpl. You need
not extends this method and interface because they do not extend
anything else. If you remove these extensions your transactions should
start working. Just try it out and let me know.
Regards,
Thomas Ramapuram.
tibi wrote:
i have two question about
http://appfuse.org/display/APF/Using+Hibernate
one is in application context is should enter this:
<bean id="personDao"
class="org.appfuse.dao.hibernate.GenericDaoHibernate">
<constructor-arg value="org.appfuse.tutorial.model.Person"/>
<property name="sessionFactory" ref="sessionFactory"/> </bean>
but the constructor is:
public PersonDaoHibernate() { super(Person.class); }
so i gues the contructor argument is not needed.
when i run this from my test its fine when i use this from my app i get:
Write operations are not allowed in read-only mode
(FlushMode.NEVER/MANUAL): Turn your Session into FlushMode.COMMIT/AUTO
or remove 'readOnly' marker from transaction definition.
which i now understand is because it is not called manager and will
not be raped in a transaction.
what should i do name it manager or change some config somewhare??
thanks
tibi
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]