mmm i don't think i follow. i now have:
public interface EventSpanDao extends GenericDao<EventSpan, Long> {
public class EventSpanDaoHibernate extends
GenericDaoHibernate<EventSpan, Long> implements EventSpanDao {
should i not extend the genericDao for my interface and not for my class
so like this:
public interface EventSpanDao {
public class EventSpanDaoHibernate implements EventSpanDao {
than i can't make use of the super constuctor like the example and of
these methods....
tibi
Thomas Ramapuram wrote:
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]