Results 1 to 3 of 3

Thread: Calendar object mapping exception spirng roo

  1. #1

    Default Calendar object mapping exception spirng roo

    Im getting exception seen on attached jpeg when tryung to persist date to database using spring roo.

    I have updated to version 3 because of the enum values.

    hopefully this should be a quick one...

    Code:
      @Size(max = 30)
        private String customer_name;
    
        @Size(max = 30)
        private String account_reference;
    
        @Size(max = 30)
        private String customer_address;
    
        @Size(max = 30)
        private String customer_telephone;
    
        @Enumerated
        private CustomerType customer_types;
    
        @Enumerated
        private CallReasonCodes call_reason_code;
    
        @Size(max = 30)
        private String detailed_note;
    
        @Temporal(TemporalType.TIMESTAMP)
        private Calendar earliest_date;
    Attached Images Attached Images

  2. #2
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    Roo's web scaffolding only presently supports java.util.Date. I'd recommend you use Date instead of Calendar.
    Ben Alex
    Project Founder, Spring UAA, Spring Roo and Spring Security

  3. #3
    Join Date
    Mar 2010
    Location
    Colombia
    Posts
    9

    Default

    Quote Originally Posted by Ben Alex View Post
    Roo's web scaffolding only presently supports java.util.Date. I'd recommend you use Date instead of Calendar.
    Hi Ben, I wanted to know how to use a date and time format for a field, and have it displayed by the automatically generated JSPX. Is this a straightforward thing to do?

    Something like this, or similar: 2005-10-30 - 10:45

    Thanks!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •