Currently, I have an HQL query that returns all Members who possess ANY Award from a set of specified Awards:
How can I order by a specific property order in HQL? For MySQL I can use: SELECT * FROM question q ORDER BY q.status IN (\"DONE\", \"NO_ACTION\"), q.status IN (\"NEW\",\"SAVED\"), q.created DESC
I\'ve got a hibernate query I\'m trying to get working but keep getting an exception with a not so helpful stack trace.I\'m including the code, the stack trace, and hibernate chatter before the except
I\'m trying to determine how to find/retrieve/load objects efficiently in terms of a.) minimizing calls to database and b.) keeping the code as elegant/simple as possible (i.e. not writing hql etc.).
I write same query with two approach by using NHibernate: 1- by using HQL like below public long RetrieveHQLCount<T>(string propertyName, object propertyValue)
I want to write an insert query in Grails. I have tried all possible combinations but cant get the syntax correct. Can anybody please help?
I have HQL like this: from Table1 t1 where t1.name not in (select t2.name from Table2 t2 order by t2.date limit 10)
Is it possible to access the relationship table when doing HQL statement? As an example, I have 3 tables: account, commitment, account_commitment. It was generated using these domains:
I am creating a method that c开发者_开发百科an create filter understood by NHibernate (by filter i mean a set of ICriteria object for example) from my abstract filter object.
I am using NHibernate, and am trying to figure out how to write a query, that searchs all the names of my entities,