Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPAUDITLOGGING-78 custom naming of id sequence generator #89

Closed
robertoschwald opened this issue Jun 26, 2015 · 3 comments
Closed

GPAUDITLOGGING-78 custom naming of id sequence generator #89

robertoschwald opened this issue Jun 26, 2015 · 3 comments
Milestone

Comments

@robertoschwald
Copy link
Member

opened by Sophia Raw 15/Apr/15 2:25 PM

I have been using your plugin for years with out any issues, thanks!!
We are currently moving from mySql to Postgresql and in the process updating all our tables' id generators to sequences, each using it's own named sequence.
it would be fantastic if I can control the name of the sequence that gets used for the audit_log table.
Something like this in Config.groovy

    auditLog {
      actorClosure = { request, session ->
         if (request.applicationContext.springSecurityService.principal instanceof java.lang.String)
             { return request.applicationContext.springSecurityService.principal }
             return request.applicationContext.springSecurityService.principal?.username
         }

       transactional = true        
       idMapping {
            id { generator = 'sequence' }, sequence = 'audit_log_id_seq'
       }
    }
@robertoschwald
Copy link
Member Author

User will get full control of the AuditLogEvent class with 1.1.0. See #13

@robertoschwald robertoschwald added this to the 1.1.0 milestone Sep 18, 2015
@robertoschwald
Copy link
Member Author

Published 1.1.0-SNAPSHOT with externalized AuditLogEvent domain class (see #13 ) support. Would be great if you can test it.

@robertoschwald
Copy link
Member Author

Use 1.1.0 for Grails2 and 2.0.0 for Grails3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant