Hibernate JPQL - querying for KEY() in Map association error
问题 I'm trying to make a JPQL query that should fetch an entity and the keys from one of its map associations, and I'm getting a bizzare error. My setup is JPA2 using the Hibernate (3.5) implementation. The model is as follows: I have a Department entity bean such as: @Entity public class Department { @Id @SequenceGenerator(name = "DEPARTMENT_ID_GENERATOR", sequenceName="department_sequence", allocationSize=100) @GeneratedValue(strategy=GenerationType.SEQUENCE, generator = "DEPARTMENT_ID