Use this tag for questions concerning "Hibernate Query Language" (HQL), a query language used by Hibernate and NHibernate.
I have 2 classes in a one-to-many relationship and a HQL query that is a bit strange. Even if I have …
java hibernate hql distinct one-to-manyWhat is the recommended way to truncate a table using hibernate/hql? I've tried this: Query query = session.createQuery("truncate …
hibernate hql truncateHibernate Keeps detecting org.hibernate.QueryParameterException: could not locate named parameter [name] even though it exist. here's my hql Query …
java hibernate hql named-parametersI have a Person table which has two columns: first_name and last_name. The Person class has two corresponding …
java hibernate hql hibernate-criteriaCan anyone point me to how we can pass an order by clause as a named parameter to HQL? Example …
java hibernate orm hql sql-order-byThis has been asked once before but the solution did not solve the issue. I am creating a JUnit test: @…
java hibernate spring-mvc jpa hqlI want to get the count of the results of a dynamically-generated HQL query, without actually getting the list of …
hibernate hqlI'm trying to create a Union between two tables, using HQL (Hibernate Query Language). This SQL script works fine on …
hibernate grails hql grails-controllerI'm working with hibernate and I'm having troubles creating an hql query that fetches all the children of my object. …
hibernate hql fetch