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

radhakrishna (JIRA) noreply at atlassian.com
Tue Oct 19 12:05:48 EDT 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=38816#action_38816 ] 

radhakrishna commented on HHH-2319:
-----------------------------------

We need to have an interceptor for stateless session especially when statelessSession is so powerful during bulk insert/updates.

> StatelessInterceptor
> --------------------
>
>                 Key: HHH-2319
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2319
>             Project: Hibernate Core
>          Issue Type: New Feature
>          Components: core
>    Affects 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