Hi,
I have generated Java Code from XSD with Jaxb: asdf.xsd -> asdf.java
It mapped the element "mydate" of type xsd:datetime to XMLGregorianCalendar mydate.
Now I want the objects of that class to be made persistant with hibernate.
for that I want to define a mapping file: asdf.hbm.xml
how would I map "mydate" ?
This is what I did so far:
Code:
<!-- from "protected XMLGregorianCalendar mydate;" -->
<property name="mydate" column="mydate" type="timestamp" />
but that doesn't work.
can some one please tell me how to do that?
Thanx in advance!