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?
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
You didn't tell me he was so big. Unlike this tiny ad:
Gift giving made easy with the permaculture playing cards