• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help!SpringFramework-Date conversion

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I am facing a problem in my application.

I am doing a validation in my VO class for Date field.The date field is defined as string in my VO class.I am getting a correct validation message.

But further down, when I come to update module.I have to convert my string to date.I am sending the entire VO as argument for update instead of individual fields

Could anyone help me how to convert String back to date , put in VO and then update the database.

Please it is really urgent

Regards
Jaya
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jayabalambika,
Welcome to the ranch. Could you please read the Naming Policy and change your name accordingly ? You need both first name and last name. Thank you for your comprehension.

What are you using to update the database ? Is it Spring JDBC ? Please clarify this first.
 
Jayabalambika Rengarajan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Using Hibernate technology to update database.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hibernate ? Doh, sorry I'm not an Hibernate user. I'm using iBatis, and I make some TypeHandlerCallback classes to use custom types. I guess Hibernate has the same kind of stuff, but I can't tell you. Sorry.

(What about http://www.hibernate.org/118.html#A18 ? )
reply
    Bookmark Topic Watch Topic
  • New Topic