/grails-app/domain/general/Rol.groovy

http://github.com/jdmr/mateo · Groovy · 18 lines · 13 code · 5 blank · 0 comment · 0 complexity · e18d8ca94253f137eee7042b1b02fc9f MD5 · raw file

  1. package general
  2. class Rol {
  3. String authority
  4. static mapping = {
  5. cache true
  6. }
  7. static constraints = {
  8. authority blank: false, unique: true
  9. }
  10. String toString() {
  11. return authority
  12. }
  13. }