Y
ysylla
Guest
Hi All,
I Have to domain class
.
Using criteria, I'd like to select only persons with valid email and and address not equal to white space.
My code :
Please, i need your helps.
Thanks
I Have to domain class
Code:
person { name, age,address,email}
Using criteria, I'd like to select only persons with valid email and and address not equal to white space.
My code :
Code:
def c = Person.createCriteria()
params.max = Math.min(params.max ? params.max.toInteger() : 181, 200)
def list = c.list(max: params.max) {
or {
isNotNull("name")
isNotNull("email")
}
}
Please, i need your helps.
Thanks