Settng the schema of a Hibernate entity extra to the default schema configuration <p>I have a Hibernate / Spring 4 application, where the default schema of the entity classes is already configured, e.g. they end up mapped as <code>testschema.table</code> or <code>prodschema.table</code>.</p> <p>However there is another entity class which needs its own configurable schema, e.g. only this entity must be mapped to <code>testschema2.anothertable</code> or <code>prodschema2.anothertable</code>.</p> <p>Nice would be something like this:</p> <pre class="lang-java prettyprint-override"><code>@Entity @Table(name="anothertable", schema = "${db.AntherEntitySchema}") public class AnotherEntity { // .. } </code></pre> <p>where the schema gets injected from the properties file, but such a feature seems only to work with the <code>@Value</code> annotation. Any idea how to proceed?</p>