thank now I put the antlr jar.
and this is what happen now in the hql editor
Code:
select sale.tprchssaletransID,sale.branchCd,sale.accountCd,sale.typeAccountCd,sale.chckBrchAcctNbr, sale.transactionDt,sale.currencyCd ,sum(case when sale.debitCreditCd ='C' then (sale.tranTotalAmt * -1) else sale.tranTotalAmt end) as net FROM TprchsSaleTrans sale GROUP by sale.branchCd,sale.accountCd,sale.typeAccountCd,sale.chckBrchAcctNbr,sale.transactionDt,sale.currencyCd,sale.tprchssaletransID
and the console give me
Quote:
org.hibernate.hql.ask.QuerySyntaxException:*near line 1 colunm 198[select sale.tprchssaletransID,sale.branchCd,sale.accountCd,sale.typeAccountCd,sale.chckBrchAcctNbr, sale.transactionDt,sale.currencyCd ,sum(case when sale.debitCreditCd =]
a mapping probleme .
It impossible.
Now what happen , if I want steal stand why
sql qyery for
Code:
<sql-query name="tprchsSaleTransQuery">
<![CDATA[select tprchs_sale_trans_ID,branch_cd,account_cd,type_account_cd,chck_brch_acct_nbr, transaction_dt,currency_cd,sum(case when debit_credit_cd = 'C' then tran_total_amt * -1 else tran_total_amt end) as net FROM tprchs_sale_trans where CONVERT(varchar(20), transaction_dt,105 ) = CONVERT(varchar(20),GETDATE(),105) or (CONVERT(varchar(20), processing_dt,105 ) = CONVERT(varchar(20),GETDATE()-1,105) and transaction_dt <= GETDATE() ) GROUP by branch_cd,account_cd,type_account_cd,chck_brch_acct_nbr,transaction_dt,currency_cd,tprchs_sale_trans_ID]]>
</sql-query>
and what to have
branch_cd char size= 3
more then just a caractere?