Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to set date format in hibernate mapping

 
Amit Madan
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am using spring with hibernate.
i have maped one been with hibernate mapping and using date as a one property.
when i am updating date it is giving me error
unparsable date

please help me how can i configure date formate in hibernate mapping

thanks
amit
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You shouldn't have to do anything; Hibernate will do this for you.

Is the Date object possibly null?
 
ambar patil
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use named query or parameter it will automatically format for U..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic