Record User parameters directly int the Hibernate session

Description

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

Environment

None

Assignee

Unassigned

Reporter

x

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Major
Configure