I am stuck with a issue where in i want to use the the native query feature of JPA to get distinct rows of data.
Query aQuery = getEntityManager().createNativeQuery("select distinct name from table",Myclass);
return aQuery.getResultList();
I have tried it and it's not working for me can some kindly suggest how to do this
Info: My backend is Oracle 10g and Appserver is Weblogic10gR2 and iam using openjpa 1.1
Thanks in adv.
VR