NO LONGER MAINTAINED

DUE TO TIME CONSTRAINTS OF THE ORIGINAL OSS DEVELOPER THE NIMBLE PLUGIN IS NO LONGER BEING MAINTAINED.

Configuring table names

Certain Nimble domain classes cause problems for many databases when tables are created due to a conflict of the hibernate generated table name with a reserved word in the RDBMS. The classic example of this is the Nimble domain class 'User' conflicting with the reserved word User in Oracle.

Currently the following Nimble domain classes have been setup to utilize configurable table names
  • User
  • Group
  • Role
  • SocialMediaAccount
  • SocialMediaService
  • FederationProvider
By default Nimble config ships with the table name as being all lowercase with a pre-pended '_'.

To modify these values edit your grails-app/config/NimbleConfig.groovy file and add the following as a direct child of the global nimble { } scope:


tablenames {
        user = "_user"
        role = "_role"
        group = "_group"

         federationprovider = "federation_provider"

         socialmediaaccount = "social_media_account"

         socialmediaservice = "social_media_service"

}

You may of course set these values to anything you like that don't conflict with other reserved words or other Nimble tables. As usual if you choose not to specify these values in your NimbleConfig.groovy file then the values stored in DefaultNimbleConfig.groovy will be authoritative.