-
Mar 1st, 2013, 04:07 AM
#1
org.joda.time.Instant validator issue
Hi,
I am new to Grails, I generated Domain for one table and made changes to set org.joda.time.Instant object to DateTime column of mysql database.
Domain :
import org.joda.time.*
import org.hibernate.validator.constraints.*
import javax.validation.constraints.*
abstract class ManagersDomain {
@NotBlank
Instant createdDateTime
static constraints = {
}
}
While inserting new record or updating existing records I am getting following exception,
HV000030: No validator could be found for type: org.joda.time.Instant.. Stacktrace follows:
Message: HV000030: No validator could be found for type: org.joda.time.Instant.
How can I overcome this issue,
can you anyone please provide suggestion, where I am doing mistake.
Thanks
Ravindar
-
Mar 1st, 2013, 05:49 AM
#2
Hi,
I have used @NotNull annotation, it is working fine.
@NotBlank
Instant createdDateTime
Thanks
Ravindar
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules