------------------------------
/**
* Bind the values of the given Map for each named parameters of the query,
* matching key names with parameter names and mapping value types to
* Hibernate types using hueristics.
* @param bean a java.util.Map
*/
public Query setProperties(Map bean) throws HibernateException;
------------------------------
Query中有个方法叫做setProperties(Map map),将条件放入map,就不用自己拼了