codevour codevour - 4 years ago 103
Java Question

Is there something like Restrictions.eq(true, false) in Criteria API?

I need a generic

which forces the result to zero matches.

Something like
Restrictions.eq(true, false)

Answer Source

I use



(Using NHibernate in C#, assuming you are using Hibernate and Java, so I hope I used the correct names of the API).

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download