views:

61

answers:

2

Hello,

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

A: 

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

Kico Lobo
+3  A: 

I found a way to do it. Simply, add

hibernate.default_schema = 'schemaName'

In DataSource.groovy

Sami