how to select * from in hql code example Example: select in hql select cust.name from Customer as custn