Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JPA using native query - distinct

java4everApr 24 2012 — edited Apr 26 2012
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 24 2012
Added on Apr 24 2012
1 comment
2,426 views