posted 14 years ago
It is legal HQL query "from Insurance insurance"
if you configure show_sql to true in hibernate.cfg.xml, you can see a SQL query on console fired by Hibernate with all the properties in the Insurance class.
if you want only specific properties (columns) you need to use the "select.." clause.