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:14:04 GMT
In fact here is a complete testcase without involving my code at all
        GregorianCalendar gc = new GregorianCalendar();
        gc.setTimeInMillis(new Date().getTime());
        XMLGregorianCalendar cc =
DatatypeFactory.newInstance().newXMLGregorianCalendar(gc);
        Properties jpaConf = new Properties();
        jpaConf.put("openjpa.Id", "jpastor");
        OpenJPAEntityManagerFactorySPI emf =
(OpenJPAEntityManagerFactorySPI)
Persistence.createEntityManagerFactory(jpaConf.getProperty("openjpa.Id"),
jpaConf);
        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-tp7580665p7580681.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Mime
View raw message