Tue May 15, 2012 10:00 am
@NamedNativeQuery(name="Customer.findByaccountNo",
query="SELECT TO_CHAR(TIME_STAMP,'DDMONYYYY:HH24MISS') TIME_STAMP," +
"MERCH_NBR, FDB_SEQ_NBR, OWNER_IIC, ACQUIRER, CHARGE_AMT," +
"TO_CHAR(CHARGE_DATE,'DDMONYYYY:HH24MISS') CHARGE_DATE, " +
"CHARGE_CURRENCY, MERCH_NAME, CITY, GEOCODE, INTES," +
"CHARGE_TYPE, TYPE_OF_CHARGE, REFERENCE_NBR, DATE_TYPE," +
"APPROVAL_CODE, AUTH_NBR, FUNCTION_CODE, BILLING_CCY, BILLING_AMT, DOLLAR_AMT," +
"RECAP_ID, RECAP_DET_SEQ, DISPOSITION, AMT_WRITE_OFF, AMT_MERCH_CHRG, AMT_CUST_CHRG, AMT_RECOVERED," +
"FRAUD_STATUS, TXN_SOURCE, METHOD_OF_ENTRY " +
"FROM MYDB.CUSTOMER " +
"WHERE ACCOUNT_NBR = ? AND CHARGE_DATE >= ? AND CHARGE_DATE <= ? ORDER BY TIME_STAMP",
resultClass=Customer.class),
Query query = this.entityManager.createNativeQuery("Customer.findByaccountNo", Customer.class);
query.setParameter(1, accountNbr);
query.setParameter(2, chargeDateFrom);
query.setParameter(2, chargeDateTo);
return query.getResultList();
Wed May 16, 2012 12:45 am
|
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.