Package org.hibernate.reactive.mutiny
Interface Mutiny
-
public interface Mutiny
An API for Hibernate Reactive where non-blocking operations are represented by a MutinyUni
.The
Mutiny.Query
,Mutiny.Session
, andMutiny.SessionFactory
interfaces declared here are simply non-blocking counterparts to the similarly-named interfaces in Hibernate ORM.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Mutiny.AbstractQuery
A non-blocking counterpart to the HibernateQuery
interface, allowing reactive execution of HQL and JPQL queries.static interface
Mutiny.Closeable
An object whoseMutiny.Closeable.close()
method returns aUni
.static interface
Mutiny.MutationQuery
static interface
Mutiny.Query<R>
static interface
Mutiny.SelectionQuery<R>
static interface
Mutiny.Session
A non-blocking counterpart to the HibernateSession
interface, allowing a reactive style of interaction with the database.static interface
Mutiny.SessionFactory
Factory forreactive sessions
.static interface
Mutiny.StatelessSession
A non-blocking counterpart to the HibernateStatelessSession
interface, which provides a command-oriented API for performing bulk operations against a database.static interface
Mutiny.Transaction
Allows code withinMutiny.Session.withTransaction(Function)
to mark a transaction for rollback.
-
Method Summary
Static Methods Modifier and Type Method Description static <T> io.smallrye.mutiny.Uni<T>
fetch(T association)
Asynchronously fetch an association that's configured for lazy loading.
-
-
-
Method Detail
-
fetch
static <T> io.smallrye.mutiny.Uni<T> fetch(T association)
Asynchronously fetch an association that's configured for lazy loading.Mutiny.fetch(author.getBook()).map(book -> print(book.getTitle()));
- Parameters:
association
- a lazy-loaded association- Returns:
- the fetched association, via a
Uni
- See Also:
Hibernate.initialize(Object)
-
-