openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From garpinc <garp...@yahoo.com>
Subject Re: Failing to persist a field where the type is XMLGregorianCalendar.
Date Fri, 20 Jul 2012 19:06:48 GMT
Yep I get exception if I do following:
        ReplicationJob job = ReplicationJob.adaptor(rr);

        GregorianCalendar gc = new GregorianCalendar();
        gc.setTimeInMillis(new Date().getTime());
        XMLGregorianCalendar cc =
DatatypeFactory.newInstance().newXMLGregorianCalendar(gc);

        OpenJPAEntityManagerFactorySPI emf =
(OpenJPAEntityManagerFactorySPI) getEmf();
        emf.getConfiguration().getProxyManagerInstance().newCustomProxy(cc,
false);



--
View this message in context: http://openjpa.208410.n2.nabble.com/Failing-to-persist-a-field-where-the-type-is-XMLGregorianCalendar-tp7580665p7580680.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Mime
View raw message