HHH-9869 - SizeExpression toString is misleading

(cherry picked from commit 45dd596c4f)
This commit is contained in:
Steve Ebersole 2015-08-04 15:58:32 -05:00 committed by Gail Badner
parent 6c3e1d3f8d
commit 99f1dedea9
1 changed files with 3 additions and 0 deletions

View File

@ -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(),