hql
HQL right outer join returning partial result with InheritanceType.SINGLE_TABLE
I have the following HQL query: entityManager.createQuery(\"Select customer FROM VisitEntry visitEntry RIGHT OUTER JOIN visitEntry.customer customer[详细]
2023-04-13 09:57 分类:问答How to map a simple Hibernate join result to object with sub-objects?
I am confused about how to query for a list of objects with sub-objects in it. I have two classes Execution and Order. And In Execution, I have the order object in it as a one-to-one relationship:[详细]
2023-04-12 23:53 分类:问答Getting a list of objects in Hibernate returns a list of a single object
I am using Hibernate in my Spring Java EE application. I get the list of Users, where User is a bean specified in the applicationContext.xml as follows:[详细]
2023-04-12 20:33 分类:问答Error on HQL Query distinct count of child collections (in elements error)
First of all, please forgive me for my vocabulary is a little limited with NHibernate so I might call something the wrong thing...here is my question:[详细]
2023-04-12 19:16 分类:问答Usecases that really need Hibernate HQL over JPQL
I know JPQL is a subset of HQL. Are there any practical usecases (please give examples) that really need HQL specific features to be used (that means it is impossible or considerably difficult with[详细]
2023-04-12 01:09 分类:问答java.lang.ClassCastException: org.hibernate.hql.ast.tree.SqlNode cannot be cast to org.hibernate.hql.ast.tree.FromReferenceNode
Im trying to update a record with a HQL query but I am getting a CastException. If anyone could help me out I would really appreciate it.[详细]
2023-04-11 20:21 分类:问答Date literals in Hibernate
I wonder how to use date literals in Hibernate query language. I did as follows in my JPA project (as Eclipselink the provider) and it works.[详细]
2023-04-11 17:09 分类:问答Java HQL tree display
I have a class named Rule, which contains a Set of childRules(each of the components of the Set are other classes). I am doing a HQL query which is marked as lazy=\"false\".[详细]
2023-04-11 09:21 分类:问答NHibernate - fetching with futures
I have this Fluent NHibernate mapping: public LossMap() { Table(\"losses\"); Id(x => x.Id).Column(\"id\");[详细]
2023-04-10 21:22 分类:问答JPQL/HQL - Is it possible to specify the order, by providing a list of IDs?
(Note: I\'m using the Play! framework, which uses Hibernate as the J开发者_如何学编程PA implementation.)[详细]
2023-04-10 16:51 分类:问答