Forums Register Login

entityManager and systems tables

+Pie Number of slices to send: Send
I need to query some of the system tables of an oracle database from my application but when I try to execute a nativequery I keep getting a null pointer exception.

I even tried the simplest of queries such as

select count(*) from dba_users;

I am guessing this might have something to do with the rights that the entitymanager has but I don't know.

How could I query on system tables using entityManager?

Thanks
+Pie Number of slices to send: Send
Please include the stack trace.
+Pie Number of slices to send: Send
I found the problem, the user that the entityManager was logged in as lacked permissions to even see the table. Of course, now there is a new issue but I will post a separate topic.

Thanks
Skool. Stay in. Smartness. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 818 times.
Similar Threads
Populating JPA managed Entity from non-JPA managed entity
time of Query Execution in Oracle ?
Should I have Entity Manager in the Sequence diagram
Passing EntityManager reference between methods doesn't work as expected
Illegal to call this method from injected, managed EntityManager
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 03:04:54.