Announcement Announcement Module
Collapse
No announcement yet.
org.joda.time.Instant validator issue Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #2
    Hi,


    I have used @NotNull annotation, it is working fine.

    @NotBlank
    Instant createdDateTime



    Thanks

    Ravindar

    Comment

    Working...
    X