Hi all,
apparently we expose a method
SessionBuilder#connectionHandlingMode(PhysicalConnectionHandlingMode mode);
Yoann noticed that while the method was exposed, we didn't actually
apply the property [1].
I'm wondering if it's wise to expose this; I can imagine that it might
be possible to craft some tricky scenario in which one strategy is
slightly better than another, but I can't think of one which wouldn't
be far-fetched.
On the other hand, some of the possible strategies are not valid
options at all, depending on the integration of TransactionManager and
connection pools; more generally I would expect one wants to pick the
optimal strategy (as allowed by such other integrations) and stick
with it consistently for the application.
I'd suggest we deprecate this method for removal (without
replacement), unless I'm missing something?
The existing HHH-14404 seems to point that this wasn't used much.
Thanks
1 -
https://hibernate.atlassian.net/browse/HHH-14404