hql
How to inner join a derived table with Hibernate/NHibernate?
(First i\'d like to apologize if this is a duplicate, I can\'t find any good solution for it even though it must be simple)[详细]
2023-04-06 19:19 分类:问答Hibernate selecting from multiple mapped entities?
I\'m trying to figure out how Hibernate handles the following situation: Say I have entities A, and B properly mapped in an hbm file. If I write an HQL query the selects from both of them (e.g. from[详细]
2023-04-06 17:24 分类:问答Hibernate HQL query does not update the Lucene Index
I am using Hibernate 3.6.3 Final and Hibernate Search 3.4.1. I wrote an HQL delete query. The objects are deleted from the database but they are not removed from the Lucene Index after the transaction[详细]
2023-04-06 07:20 分类:问答HQL sorting records by using greatest of 2 columns
For each row in my database开发者_如何学Go, I have 2 columns, say id and A. Sometimes A can benull. I want to sort all records by greatest of its id and A value, but if A is null, it will be ignored a[详细]
2023-04-06 04:00 分类:问答Problem with slow hql query in grails app
I have this hql query but it takes so long (10 minutes) to be executed since its basically sweep the whole table. I was wondering if there is other way to write this to run faster.[详细]
2023-04-04 17:22 分类:问答using HQL select fetching collections failed
My problem is that i am not able to include collection properties of a class in my select query I do have a parent/child relation between two classes (Team and Member)[详细]
2023-04-04 14:12 分类:问答HQL Subquery Query Select
I always get the error too many Columns when i execute this query. SELECT o FROM Overlay o WHERE ( :coordinate ) IN ELEMENTS(o.blocksCoordinates)[详细]
2023-04-04 12:10 分类:问答Open query in hibernate exception
I am using struts2 and hibernate for development. The Java Code i used to run my open query is as follows[详细]
2023-04-04 08:23 分类:问答Hibernate AliasToBean with Collection
I have a bi-directional one-to-many relationship defined between Parent and Child classes. I\'m looking to execute a query such that I can return a single parent, and a subset of its children in a bea[详细]
2023-04-04 06:57 分类:问答hibernate hql joins hashset question
I have three tables users, survey, surveyreponses I used hibernettool to ge开发者_开发百科nerate the objects/mapping/xml etc[详细]
2023-04-04 06:41 分类:问答