Interface Mutiny


  • public interface Mutiny
    An API for Hibernate Reactive where non-blocking operations are represented by a 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.

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