Hi.
I've to access a DB table that depending on the environment will be in different schema, so, as it's not possible to define annotations and XML configuration for Hibernate, I have a problem.
The class since now:
Code:
@Entity
@Table(name = "ARCHIVE")
public class Archive implements Serializable {
}
No need since now to have defined a schema so it was in dev environment, but after a time, to put it in production env, it's a requisite to set :
Code:
@Entity
@Table(name = "ARCHIVE", schema="DATA")
public class Archive implements Serializable {
}
In XML, you could define the schema property as
schema=${data.schema} so, what about doing the same in annotation based configuration?
Someone has encountered the same problem?
It's possible to mavenize it an easy-way?
Regards.