Announcement Announcement Module
Collapse
No announcement yet.
Calendar object mapping exception spirng roo Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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;

  • #2
    Roo's web scaffolding only presently supports java.util.Date. I'd recommend you use Date instead of Calendar.

    Comment


    • #3
      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!

      Comment

      Working...
      X