Restriction (element)

From JRapid

(Redirected from Restriction)
Jump to: navigation, search

The "restriction" element can be used to set a restriction made entirely with HQL.


            expr = EXPR
            usedistinct = "usedistinct" 
  • ?: a param for the expression.
  • usedistinct: it indicates that the HQL queries shouldn‘t bring duplicate rows.


<filter display="primary" label="Contact" name="contactFilter">
     <restriction expr=" in (select company from Company as company where ? in
                 (select contact.surname from Contact as contact where
                 <param value="contactFilter"/>

See also

Personal tools