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!

Named native query and orm.xml

roger_gomesMay 13 2008 — edited May 14 2008
Hi All,

I'm trying to use select's inside orm.xml on JPA project. But, when I execute the query, return an error of "ORA-00900: invalid SQL statement". If this select is executed like getEntityManager().createNativeQuery(sql) this work fine.

Then, I would like to know how build a select inside orm.xml. If someone has a example of this.

Any help... please !!!

10ks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 11 2008
Added on May 13 2008
6 comments
6,418 views