HHH-9869 - SizeExpression toString is misleading

This commit is contained in:
Steve Ebersole 2015-08-04 15:58:32 -05:00
parent ad704a194e
commit 45dd596c4f
1 changed files with 3 additions and 0 deletions

View File

@ -6,6 +6,8 @@
*/
package org.hibernate.criterion;
import java.util.Locale;
import org.hibernate.Criteria;
import org.hibernate.HibernateException;
import org.hibernate.engine.spi.TypedValue;
@ -45,6 +47,7 @@ public class SizeExpression implements Criterion {
.setCondition( pk, fk );
return String.format(
Locale.ROOT,
"? %s (select count(*) from %s where %s)",
op,
cp.getTableName(),