I need a generic Criterion
which forces the result to zero matches.
Something like Restrictions.eq(true, false)
?
I use in NHibernate (C#):
Restrictions.Sql("(1=0)");
or in Hibernate (Java):
Restrictions.sqlRestriction("(1=0)");
:-)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With