You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
I'm writing some DAO-like code and want to ensure a Session is already open when it's called. But Hibernate Reactive doesn't expose a getCurrentSession() on SessionFactory
Mutiny SessionFactory already checks for this internally, but doesn't expose access
Mutiny Code:
Mutiny.Sessioncurrent = context.get( contextKeyForSession );
if ( current != null && current.isOpen() ) {
LOG.debug( "Reusing existing open Mutiny.Session which was found in the current Vert.x context" );
returnwork.apply( current );
}
else {
LOG.debug( "No existing open Mutiny.Session was found in the current Vert.x context: opening a new instance" );
returnwithSession( openSession(), work, contextKeyForSession );
}
Can we add something that allows you to fetch current session (if one is in progress), or at least check if a Session is already open?
The text was updated successfully, but these errors were encountered:
Hello!
I'm writing some DAO-like code and want to ensure a Session is already open when it's called. But Hibernate Reactive doesn't expose a
getCurrentSession()
onSessionFactory
Mutiny SessionFactory already checks for this internally, but doesn't expose access
Mutiny Code:
Can we add something that allows you to fetch current session (if one is in progress), or at least check if a Session is already open?
The text was updated successfully, but these errors were encountered: