Skip to content

Allow for @Table annotations to use configuration parameters #829

@berlin-ab

Description

@berlin-ab

For example:

@table(schema="${myApp.schemaName}")

We have multiple applications which use the same database schema in production, but need to use different schemas in development. The @table annotation provided by hibernate-jpa accepts a schema, or can use a default schema from application.properties, but there isn't an easy way to configure these schemas dynamically. Schemas are fixed at compile time.

Metadata

Metadata

Assignees

Labels

status: declinedA suggestion or change that we don't feel we should currently apply

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions