HHH-9869 - SizeExpression toString is misleading
(cherry picked from commit 45dd596c4f
)
This commit is contained in:
parent
6c3e1d3f8d
commit
99f1dedea9
|
@ -23,6 +23,8 @@
|
|||
*/
|
||||
package org.hibernate.criterion;
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
import org.hibernate.Criteria;
|
||||
import org.hibernate.HibernateException;
|
||||
import org.hibernate.engine.spi.TypedValue;
|
||||
|
@ -62,6 +64,7 @@ public class SizeExpression implements Criterion {
|
|||
.setCondition( pk, fk );
|
||||
|
||||
return String.format(
|
||||
Locale.ROOT,
|
||||
"? %s (select count(*) from %s where %s)",
|
||||
op,
|
||||
cp.getTableName(),
|
||||
|
|
Loading…
Reference in New Issue