1. HQL in operator and parameters stackoverflow.comThere is need for quering NHibernate for several instances of the entity. I've tried following code, but it failed with wired NRE indepth of NHibernate.
|
2. HQL operator priority forum.hibernate.orgsession.createQuery( "from Node as node " + ",ImportedContentNode as icn " + "where node.nid=icn.nid and " + ... |
3. HQL concatenation operator || doesn't work forum.hibernate.org |
4. HQL "IN" operator usage? forum.hibernate.orgNot sure whether there are other posts in the forums on this topic ("in", not surprisingly, appears to be a stop-word in the forum search), but anyway, here's my issue: I've got HQL something like this: from ...item where item.visibility in ? --where visibility is a String. I want the SQL to work out to: ...from item where item.visibility in ('A', ... |
5. 'Contains' operator in HQL forum.hibernate.orgHello guys, I am looking for an elegant manner to query a field in HQL with the equivalent of the CatSearch operator in Oracle. With this operator you can retrieve every line where a colum (let's say a column named 'content') contains words "Hibernate" and "Oracle" Example : select [...] from [...] where CatSearch (Content, 'Hibernate | Oracle', Null ) > ... |
6. How to use concatenation operator in Hibernate (HQL) forum.hibernate.orgHi, Thanks for your reply. below is the SQL Query that I need to convert to HQL. I am facing problem with the concatenation operator. SELECT ADV.BR_SET_CODE,ADV.LOAN_AMT,FEE_ID,FEE_FREQ_IDFEE_AMT,IS_W AIVABLE_FEE,IS_OTHER_FEE,EMP.FIRST_NAME||','||EMP.LAST_NAME,FEE. DATE_UPDATED,GAP_PERIOD FROM LT_CA_BR_LOAN_AMT ADV, LT_CA_BR_FEE_AMT FEE,CA_EMP_MASTER EMP WHERE ADV.BR_SET_CODE =FEE.BR_SET_CODE AND ADV.LOAN_AMT=FEE.LOAN_AMT AND ADV.BR_SET_CODE=? AND ADV.UPDATED_BY = EMP.EMP_CODE"; I converted the above Query to Hibernate Query as follows . It is giving the ... |
7. HQL in(..) operator and upper(..) function forum.hibernate.org |
8. Problem using the HQL "NEW" operator forum.hibernate.org |