Hi,
I have a named query like this.
SELECT
distinct new com.radian.axiom.billing.cuw.bo.dto.BillingProfileSummaryDTO( summaryDTO.billingProfileID,summaryDTO.billingProfileDisplayID,
summaryDTO.customerID)
FROM
com.radian.axiom.billing.cuw.bo.dto.BillingProfileSummaryDTO AS summaryDTO
WHERE
((:customerNameFlag = 0) OR (UPPER(summaryDTO.customerName) LIKE UPPER(:customerName)))
AND
((:branchNameFlag = 0) OR (UPPER(summaryDTO.coveredBranchName) LIKE UPPER(:branchName)))
here i need to find the count of these distinct new records.
Let me know the solution if any body knows. I am using oracle 9i and hibernate 2.1
Sunil
|