[hibernate-issues] [Hibernate-JIRA] Créée: (HHH-2061) Record User parameters directly int the Hibernate session

Xavier Brénuchon (JIRA) noreply at atlassian.com
Thu Sep 7 11:00:24 EDT 2006


Record User parameters directly int the Hibernate session
---------------------------------------------------------

         Key: HHH-2061
         URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2061
     Project: Hibernate3
        Type: Improvement

    Versions: 3.1.3, 3.2.0 cr1, 3.2.0.cr2, 3.2.0.cr3, 3.2.0.cr4    
    Reporter: Xavier Brénuchon


Hello,

I need to transmit some informations about runtime context of my application to my IdentifierGenerator.
Today, the only solution is to use a fake filter as :

mySession.enableFilter("myFakeFilter").setParameter("myParam", myvalue);

And in my IdentifierGenerator:

// Filter interface has not getParameter methode, so I cast to FilterImpl.
((FilterImpl)mySession.getEnabledFilter("myFakeFilter")).getParameter("myParam");

Is it possible that we can record User parameters directly int the Hibernate session?
(In fact, the equivalent of PersistanceManager of JDO) :
Object putUserObject(Object key, Object value);
Object removeUserObject(Object key);
Object getUserObject(Object key);

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