title: How can I set the schema name used by hibernate entities at query time?
body: <p>Our application uses Hibernate for ORM, and stores data in several schemas, accessing them with a user whose grants are customized for the application.</p>
  
  <p>The schema names are determined at runtime based on data; it's not feasible to include their names in the entity mapping documents.  This means that I need a way to tell Hibernate to use a specific schema name when performing lookups.  Is there a way to do this?</p>