hiberate named query variable schema name

Posted by Sandeep Jindal on Stack Overflow See other posts from Stack Overflow or by Sandeep Jindal
Published on 2010-04-30T11:31:42Z Indexed on 2010/04/30 11:37 UTC
Read the original article Hit count: 333

Filed under:
|

Hi,

Other than default schema, for some SQL queries I need to access a particular schema. The issue is that the name of that particular schema is different for different environments.

After goggling I found that using this link I am able to specify the schema name in variable. If that’s true that I have following questions:

  1. Will that would for SQL queries in the named query?
  2. How to set the value for the variable names?

Thanks in advance.

© Stack Overflow or respective owner

Related posts about hibernate

Related posts about named-query