com.causecode.currency.Currency.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nucleus Show documentation
Show all versions of nucleus Show documentation
nucleus is a Grails-Groovy plugin which contains utility methods, classes and endpoints.
package com.causecode.currency
import groovy.transform.EqualsAndHashCode
import groovy.transform.ToString
/**
* Used to store currency code and name information.
*
*/
@ToString(includes = ['code'], includePackage = false)
@EqualsAndHashCode
class Currency {
Date dateCreated
Date lastUpdated
String code
String name
static constraints = {
dateCreated bindable: false
lastUpdated bindable: false
code blank: false
name blank: false
}
}