I am trying to get a simple list of departments from an employee table in my database using Hibernate. Appearntly this simple task is fairly difficult since Hibernate is all about populating objects with data. Anyway, here is the query I am using:
the createSQLQuery uses the Employee.class to determine the column, I think, so here is my Employee.hbm.xml