The moose likes Object Relational Mapping and the fly likes how to set date format in hibernate mapping Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "how to set date format in hibernate mapping" Watch "how to set date format in hibernate mapping" New topic
Author

how to set date format in hibernate mapping

Amit Madan
Ranch Hand

Joined: Dec 20, 2000
Posts: 32
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
Marshal

Joined: Mar 22, 2005
Posts: 32767
You shouldn't have to do anything; Hibernate will do this for you.

Is the Date object possibly null?


Android appsImageJ pluginsJava web charts
ambar patil
Ranch Hand

Joined: Nov 29, 2005
Posts: 226
use named query or parameter it will automatically format for U..
 
 
subject: how to set date format in hibernate mapping
 
Threads others viewed
Hibernate select columns from multiple tables
How to access Stored Procedure
hbm file version working but annotation not
SQLGrammarException
JBoss IDE 1.5 with Hibernate
jQuery in Action, 2nd edition