use HQL instead of SQL