Can we use sleep pooling?

Does anyone have any idea of ​​unions in sleep mode?

I got this question in an interview. I think so, but I'm not sure where and when.

+6
hibernate
source share
2 answers

The answer is no ... see here https://www.hibernate.org/117.html#A21

+3
source share

Even if you cannot make a real union, you can imitate it if the union is for two different queries for the same object. In this case, you can use Disjunction to OR two or more different DetachedCriteria queries, using the output of these queries as inputs to Restrictions.in for some column in the main entity. This method gives you the union equivalent.

+2
source share

All Articles