[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-5620) Make a Session equivalent to SessionFactoryObserver

Kim A. Betti (JIRA) noreply at atlassian.com
Fri Oct 1 17:11:57 EDT 2010


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

Kim A. Betti commented on HHH-5620:
-----------------------------------

Sorry, apparently I managed to press submit before I was done typing. 

There is already a SessionFactoryObserver interface. It would be very convenient with a similar interface for sessions. Or at least make the SessionFactoryImpl non-final so it's possible to sub-class it and override the interesting method. 

> Make a Session equivalent to SessionFactoryObserver
> ---------------------------------------------------
>
>                 Key: HHH-5620
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5620
>             Project: Hibernate Core
>          Issue Type: New Feature
>            Reporter: Kim A. Betti
>
> There are a couple of use cases where it would be useful to listen in on new Hibernate Sessions (for example to activate filters). This is made incredible difficult today as HibernateFactoryImpl is declared final and is responsible for creating the CurrentSessionContext istance, which is held in a final field.

-- 
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