• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help!SpringFramework-Date conversion

 
Jayabalambika Rengarajan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • 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
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Using Hibernate technology to update database.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • 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 ? )
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic