Expr (attribute of suggest)
This HQL expression suggests all existing city values that contain the current entered value as part of their name. Note the usage of the value received as a parameter by including the "?" in the HQL expression.
<property name="city" label="City" > ... <suggest expr="SELECT a.city FROM Address as a WHERE a.city LIKE concat('%', ?, '%')"/> ... </property>