I have an entity defined with a schema name for the table:
@Entity
@Table(name = "domain", schema = "appauth")
public class Domain implements Serializable {
With DEBUG logging enabled, I can see that Hibernate knows about the schema name when loading the entity definitions (note the reference in the last line shown below):
However, when it comes time to run a query, Hibernate is not using a schema-qualified table name in the FROM clause of the SQL statement:
Have I configured something improperly? I've also tried setting hibernate.default_schema and defining a SchemaNameResolver, but these do not help (I believe because the problem isn't the recognition of the schema name, it's the application of it). |