Hey, I am trying to do auditing/versioning using the Hibernate http://www.jboss.org/files/envers/docs/index.html Envers module. I look around, didn't really see much doc on versioning by tapestry users. However, I got it work, as in, It automatically saves new revisions if I ask it to. However, my issue is trying to query the revisions. It is supposed to be simple reading the docs, ideally all i have to do something like this.
AuditReader reader = AuditReaderFactory.get(entityManager); Person oldPerson = reader.find(Person.class, personId, revision) Tapestry doesn't use entitymanager, and luckily AuditReaderFactory can be supplied a org.hibernate.session. AuditReader reader = AuditReaderFactory.get(session); This hasn't worked for me, every session I give it, it's says the session isn't running the actually error is, getListeners is not valid without active transaction I have injected a session, and even tried session.beginTransaction() but still get that error. Please help, if you've had a similar error. -- View this message in context: http://www.nabble.com/Just-trying-to-get-an-Active-Transaction-tp24479192p24479192.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org