I have the following HQL query:
SELECT ita.invoiceType, ita.agreementNumber, itr.ruleCategory
FROM InvoiceTypeAgreements ita, InvoiceTypeRules itr
WHERE ita.invoiceType = itr.invoiceType
AND ita.agreementNumber IN (?1)
AND itr.ruleCategory IN (?2)
I'm using query.getResultList() to get the values back from this. I assume it is returning an ArrayList<String[]> but whenever I try to access the String[]'s in the ArrayList<String[]> I get this error:
java.util.concurrent.ExecutionException: javax.ejb.EJBException:
java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.String;
Is an ArrayList<String[]> not what the HQL query is returning?