
com.causecode.contact.PhoneCountryCode.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.
/*
* Copyright (c) 2016, CauseCode Technologies Pvt Ltd, India.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or
* without modification, are not permitted.
*/
package com.causecode.contact
import com.causecode.geo.location.Country
import groovy.transform.EqualsAndHashCode
import groovy.transform.ToString
/**
* Used to store code and country information.
*
*/
@ToString(includes = ['id'], includePackage = false)
@EqualsAndHashCode
class PhoneCountryCode {
Date dateCreated
Date lastUpdated
String code
Country country
static constraints = {
code blank: false, unique: true, maxSize: 2
dateCreated bindable: false
lastUpdated bindable: false
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy