public interface Mutiny
Uni
.
The Mutiny.Query
, Mutiny.Session
, and Mutiny.SessionFactory
interfaces declared here are simply non-blocking counterparts to
the similarly-named interfaces in Hibernate ORM.
Modifier and Type | Interface and Description |
---|---|
static interface |
Mutiny.Closeable
An object whose
Mutiny.Closeable.close() method returns a Uni . |
static interface |
Mutiny.Query<R>
A non-blocking counterpart to the Hibernate
Query interface, allowing reactive
execution of HQL and JPQL queries. |
static interface |
Mutiny.Session
A non-blocking counterpart to the Hibernate
Session
interface, allowing a reactive style of interaction with the database. |
static interface |
Mutiny.SessionFactory
Factory for
reactive sessions . |
static interface |
Mutiny.StatelessSession
A non-blocking counterpart to the Hibernate
StatelessSession interface, which provides a
command-oriented API for performing bulk operations against a database. |
static interface |
Mutiny.Transaction
Allows code within
Mutiny.Session.withTransaction(Function) to mark a
transaction for rollback. |
Modifier and Type | Field and Description |
---|---|
static org.hibernate.reactive.logging.impl.Log |
LOG |
Modifier and Type | Method and Description |
---|---|
static <T> io.smallrye.mutiny.Uni<T> |
fetch(T association)
Asynchronously fetch an association that's configured for lazy loading.
|
static <T> io.smallrye.mutiny.Uni<T> fetch(T association)
Mutiny.fetch(author.getBook()).map(book -> print(book.getTitle()));
association
- a lazy-loaded associationUni
Hibernate.initialize(Object)
Copyright © 2020-2022 Red Hat, Inc. All Rights Reserved.