java - hibernate restrictions and/or order -


Small questions about restrictions and restrictions. And

If I do something like this:

  ... Criteria = Criterion A; Criteria = Restrictions. And (criteria, criteria B); Criteria = Restrictions These (criteria, criteria C); Criterion = Restrictions And (criteria, criteria D);  

It will be treated as:

  (A and B) or (C & D) (after mathematical conventions)  < / Pre> 

or it will be treated in this order that the restriction has been added:

  ((A and B) or C) and D)  

Please also add any type of reference ...

  ((a and b) or c) and d)  

you can

 < Code> criteria = restriction 


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -