In postgres, we can fetch data in multiple schemas through the same sql. Doing so:
SELECT * FROM meu_schema.minha_tabela
Is it possible to do this using createQuery
?
By default, my application is using public schema, but I wanted to do a search on another schema in a particular method.
Something like:
Query query = entityManager.createQuery("SELECT s FROM schema2.Simulacao s");