hibernate 

BaseDao.findByHql(String hql, Object[] params)方法的使用:

findByHql("from User_dsl where user_name=?", new String[]{userName});