[hibernate-issues] [Hibernate-JIRA] Created: (HHH-2319) StatelessInterceptor

Max Rydahl Andersen (JIRA) noreply at atlassian.com
Wed Dec 20 03:15:04 EST 2006


StatelessInterceptor
--------------------

         Key: HHH-2319
         URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2319
     Project: Hibernate3
        Type: New Feature

  Components: core  
    Versions: 3.2.1    
    Reporter: Max Rydahl Andersen


It would make sense to have an Interceptor for StatelessSession to solve the following usecases:

Log/adjust SQL: onPrepareStatement

Proper entityname handling: instantiate/getEntity

Maybe also tx interaction: afterTransationBegin/beforeTransactionCompletion/afterTransactionCompletion

Technically it could be solved by just allowing to pass in a normal interceptor to a StatelessSession and just
document that the state oriented callbacks will not be called. Alternatively we can create a StatelessInterceptor that
only implement the releavant methods and wrap that instance into an internal Interceptor.




-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira




More information about the hibernate-issues mailing list