I was reading the doc of Hibernate Reactive and I encountered this statement:
"In Hibernate Reactive, on the other hand, lazy association fetching is an asynchronous process that produces a result via a CompletionStage (or Uni). Therefore, lazy fetching is an explicit operation ..."
I probably have some lack of knowledge that keep me away from understanding the meaning of the statement. Why the fact that the lazy association fetching is an async process, cause it to not be transparent like in standard Hibernate? What is the challenge or the impediment here?
From the example in the doc:
session.find(Author.class, author.id)
.chain( author -> Mutiny.fetch(author.books) )
.invoke( books -> ... )
why we have to explicitly chain the fetch method to declare that, at some point, the application may need to load the books from the DB? Standard Hibernate don't need it.
Please, make you answer as less vague than possible. I'd like to deeply understand this problem.
Thank you!