All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.causecode.user.Role.groovy Maven / Gradle / Ivy

Go to download

nucleus is a Grails-Groovy plugin which contains utility methods, classes and endpoints.

The newest version!
package com.causecode.user

import groovy.transform.EqualsAndHashCode
import groovy.transform.ToString

/**
 * Role groovy class used to specify authority information.
 */
@ToString(includes = ['id'], includePackage = false)
@EqualsAndHashCode
class Role {

    String authority

    Date dateCreated
    Date lastUpdated

    static mapping = {
        cache true
    }

    static constraints = {
        authority blank: false, unique: true
        dateCreated bindable: false
        lastUpdated bindable: false
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy