What does hibernate.default_schema
mean to Hibernate ?
Here is my entity definition.
@ Table(name = “cluster”, schema = “schema1”)
@ SecondaryTable(name = “Cluster”, schema = “schema2”, pkJoinColumns = @ PrimaryKeyJoinColumn(name = “clusterId”, referencedColumnName = “objid”))
@ org.hibernate.annotations.Table(appliesTo = “Cluster”, optional = false)
@ Entity
@ OptimisticLocking(type = OptimisticLockType.DIRTY)
@ DynamicUpdate
public class Cluster implements Serializable {
}
If I set hibernate.default_schema
to say mock_schema1
does it set for Main table(@Table
) or secondary table(@SecondaryTable
)?
How can I add default_schema for the Main table? it is working for a secondary table but not for the main table
I was wondering if I can use any similar hibernate property for Dbtest
which can use a different schema(mock_schema1
) instead of the default schema(schema1
).