@@ -1394,7 +1394,7 @@ interface StatelessSession extends Closeable {
1394
1394
*
1395
1395
* @param association a lazy-loaded association
1396
1396
*
1397
- * @return the fetched association, via a {@code CompletionStage }
1397
+ * @return the fetched association, via a {@code Uni }
1398
1398
*
1399
1399
* @see org.hibernate.Hibernate#initialize(Object)
1400
1400
*/
@@ -1688,6 +1688,14 @@ interface SessionFactory extends AutoCloseable {
1688
1688
* Perform work using a {@link Session reactive session} within an
1689
1689
* associated {@link Transaction transaction}.
1690
1690
* <p>
1691
+ * <il>
1692
+ * <li>If there is already a session associated with the
1693
+ * current reactive stream, then the work will be executed using that
1694
+ * session.
1695
+ * <li>Otherwise, if there is no session associated with the
1696
+ * current stream, a new stateless session will be created.
1697
+ * </il>
1698
+ * <p>
1691
1699
* The session will be {@link Session#flush() flushed} and closed
1692
1700
* automatically, and the transaction committed automatically.
1693
1701
*
@@ -1703,6 +1711,14 @@ interface SessionFactory extends AutoCloseable {
1703
1711
* Perform work using a {@link StatelessSession reactive session} within an
1704
1712
* associated {@link Transaction transaction}.
1705
1713
* <p>
1714
+ * <il>
1715
+ * <li>If there is already a stateless session associated with the
1716
+ * current reactive stream, then the work will be executed using that
1717
+ * session.
1718
+ * <li>Otherwise, if there is no stateless session associated with the
1719
+ * current stream, a new stateless session will be created.
1720
+ * </il>
1721
+ * <p>
1706
1722
* The session will be closed automatically and the transaction committed automatically.
1707
1723
*
1708
1724
* @param work a function which accepts the stateless session and returns
@@ -1736,10 +1752,10 @@ interface SessionFactory extends AutoCloseable {
1736
1752
* <p>
1737
1753
* <il>
1738
1754
* <li>If there is already a stateless session associated with the
1739
- * current reactive stream, then the work will be executed using that
1755
+ * current reactive stream and given tenant id , then the work will be executed using that
1740
1756
* session.
1741
1757
* <li>Otherwise, if there is no stateless session associated with the
1742
- * current stream, a new stateless session will be created.
1758
+ * current stream and given tenant id , a new stateless session will be created.
1743
1759
* </il>
1744
1760
* <p>
1745
1761
* The session will be closed automatically.
@@ -1754,6 +1770,14 @@ interface SessionFactory extends AutoCloseable {
1754
1770
* Perform work using a {@link Session reactive session} for a
1755
1771
* specified tenant within an associated {@link Transaction transaction}.
1756
1772
* <p>
1773
+ * <il>
1774
+ * <li>If there is already a session associated with the
1775
+ * current reactive stream and given tenant id, then the work will be executed using that
1776
+ * session.
1777
+ * <li>Otherwise, if there is no session associated with the
1778
+ * current stream and given tenant id, a new stateless session will be created.
1779
+ * </il>
1780
+ * <p>
1757
1781
* The session will be {@link Session#flush() flushed} and closed
1758
1782
* automatically, and the transaction committed automatically.
1759
1783
*
@@ -1770,6 +1794,14 @@ interface SessionFactory extends AutoCloseable {
1770
1794
* Perform work using a {@link StatelessSession reactive session} for a
1771
1795
* specified tenant within an associated {@link Transaction transaction}.
1772
1796
* <p>
1797
+ * <il>
1798
+ * <li>If there is already a stateless session associated with the
1799
+ * current reactive stream and given tenant id, then the work will be executed using that
1800
+ * session.
1801
+ * <li>Otherwise, if there is no stateless session associated with the
1802
+ * current stream and given tenant id, a new stateless session will be created.
1803
+ * </il>
1804
+ * <p>
1773
1805
* The session will be closed automatically and the transaction committed automatically.
1774
1806
*
1775
1807
* @param tenantId the id of the tenant
0 commit comments