1. Accesing session from an Interceptor forum.hibernate.org |
2. Interceptor, detached sessions forum.hibernate.orghi, We want to implement minimal audit logging. We've implemented an Interceptor overiding the onFlushDirty method. The previousState during this method call is always null. We are using pojo's from detached sessions. The pojo is created in one session, modified in the web-tier and then sent to the biz tier where a new session is created and the object is updated. ... |
3. Interceptor calls during session.isDirty() forum.hibernate.org |
4. Interceptor not called after Session.replicate() forum.hibernate.orgarchie172 Post subject: Here is a test case Posted: Tue Nov 16, 2004 3:00 pm Newbie Joined: Tue Nov 16, 2004 1:10 pm Posts: 5 Here is a test case that reproduces the problem: Java source: Code: ... |
5. Session Interceptor forum.hibernate.orgOkay I figured this one out. You can specify an Interceptor implementation for the entire session factory using the SessionFactoryInterceptor attribute of the mbean descriptor: Code: |
6. Getting Session from HibernateContext within Interceptor forum.hibernate.orgHi Jboss-4.0.1sp1 Hibernate 2.1.6 SQL Server 2k I am trying to use an Interceptor to generate an audit trail from within a HAR in JBoss. In order to avoid an endless loop, I need to get a Hibernate Session which does not have the audit Interceptor attached to it. How am I able to do this from the Hibernate context? I've ... |
7. Relationships between the interceptor, the session and cache forum.hibernate.orgNewbie Joined: Sun Oct 31, 2004 3:22 pm Posts: 6 Hibernate version:3 Name and version of the database you are using:Postgresql 8 I have recently migrated our project from Hibernate 2 to Hibernate 3. The problem I will describe exists in both versions. I believe that I am mis-using some capabilities in Hibernate, but cannot find the error of my ways. ... |
8. How to use Session in Interceptor?(Hibernate2.1.6) forum.hibernate.org |
9. Stateless Session with Interceptor? forum.hibernate.orgHm, I tried and modified the source code, so that StatelessSessionImpl has an overloaded constructor that takes an interceptor. I also modified the session factory, so that it provides access to this constructor. For my case it is working nicely: Adjusting the generated sql in onPrepareStatement(). This is to redirect inserts to an inherited table - which is postgres's way of ... |
10. session.flush() in interceptor postFlush hangs forum.hibernate.orgHi, Env : Hibernate 3.0.5, Sun Application Server 8.0 Condition : During PostFlush method of Audit Interceptor, insert into audit table hangs. This is happening when the same use case is executed twice.... It works well first time. Entries go in the audit tables and business entities tables also get updated. But on second hit in postFlush method, when it fires ... |
11. Stateless Session Interceptor forum.hibernate.org |