mysql - HQL: Subquery returns more than 1 row -


i'm new hql , need on error.

query:

 string hqlsearchselect =                 "select new com.eteligent.core.loans.paging.loansappcustomerpageitem("                     + "main.loanno, (select acct.id.clientid lmsaccountinfo acct acct.loanno = main.loanno), (select acct.name lmsaccountinfo acct acct.loanno = main.loanno), main.acctsts, "                     + "main.loanbal, (select acct.matdt lmsaccountinfo acct acct.loanno = main.loanno) )"; 

i think query can't identify record going return.

constructor(loansappcustomerpageitem):

public loansappcustomerpageitem( final string acctno, final string cifno, final string customername, final integer acctstat, final bigdecimal acctbal, final date acctduedate ) {     super();     this.acctno = acctno;     this.cifno = cifno;     this.customername = customername;     this.acctstat = acctstat;     this.acctbal = acctbal;     this.acctduedate = acctduedate; } 

if wanna 1 row subquery use limit 1 @ end of subquery.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -