0
In postgres, we can search for data in various schemas through sql itself. Doing so:
SELECT * FROM meu_schema.minha_tabela
It is possible to do this using the createQuery
?
By default, my application is using the public schema, but wanted to do a search in another schema in a given method.
Something like:
Query query = entityManager.createQuery("SELECT s FROM schema2.Simulacao s");