Joined: Wed Feb 22, 2006 2:43 am Posts: 1
|
Hi,
I am trying to store date through xml using hibernate xml persistence.
But i am getting following error -
org.hibernate.HibernateException: could not parse XML
at org.hibernate.type.DateType.fromStringValue(DateType.java:95)
at org.hibernate.type.NullableType.fromXMLString(NullableType.java:102)
at org.hibernate.type.NullableType.fromXMLNode(NullableType.java:126)
at org.hibernate.property.Dom4jAccessor$ElementGetter.get(Dom4jAccessor.java:192)
at org.hibernate.tuple.AbstractTuplizer.getPropertyValues(AbstractTuplizer.java:174)
at org.hibernate.persister.entity.BasicEntityPersister.getPropertyValues(BasicEntityPersister.java:2929)
at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:84)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:190)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:70)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:730)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:329)
at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:86)
at updatedb.DBUploder.uploadDB(DBUploder.java:77)
at updatedb.DBUploder.main(DBUploder.java:219)
Caused by: java.text.ParseException: Unparseable date: "20 December 2005"
at java.text.DateFormat.parse(DateFormat.java:335)
at org.hibernate.type.DateType.fromStringValue(DateType.java:92)
Please tell what format i shoul use for date?
In class file i am using java.util.date for data variable
and in hbm.xml i am using type="date".
|
|