I'm creating a Hibernate mapping for a view named
foo_view in a PostgreSQL DB. The configuration is like this:
The DB is on a remote server and can only be accessed using a SSH tunnel. Normally, I will first create a SSH tunnel from my localhost to the DB host. Then I'll just psql my localhost.
One problem is: I'll have to do:
Code:
SET search_path = foo, bar;
everytime in my psql shell to be able to access
foo_view. I don't know where to set this runtime parameter in Hibernate. Can anyone shed some light on this?
Thanks.