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]

Reply via email to