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.