Sami
Sami

Reputation: 141

Grails - schema configuration

How can I configure Grails (in DataSource.groovy file) to use specific schema that a given username has access to, but it is not necessarily the default schema for that user.

Thanks

Upvotes: 4

Views: 2624

Answers (2)

Sami
Sami

Reputation: 141

I found a way to do it. Simply, add

hibernate.default_schema = 'schemaName'

In DataSource.groovy

Upvotes: 10

Kico Lobo
Kico Lobo

Reputation: 4404

Unfortunetelly by DataSource.groovy you can't do that, because that information cannot be changed at runtime.

Upvotes: 0

Related Questions