thanks i remplace LocalDateTime to DateTime and it can persist 😊 Matias Nahuel HerediaDiplomado de seguridad informáticaAnalista de sistemas de la informaciónCorreo:[email protected]:http://ar.linkedin.com/pub/matias-nahuel-heredia/37/358/8abBlog:http://matiasnahuelheredia.blogspot.com.ar
> From: [email protected] > Date: Thu, 26 Mar 2015 16:42:14 +0100 > Subject: Re: I cant persist LocalDateTime > To: [email protected] > > Hi Matias, > > This has been fixed in Datanucleus 4.1.0m2 [1]. As part of moving to Java 8 > we will upgrade to Datanucleus 4.x in the near future. > > If you're in a hurry, Jeremy Branham already moved his fork to Datanucleus > 4.0.4 [2], you could leverage his efforts. > > Cheers, Jeroen > > [1] http://www.datanucleus.org/servlet/jira/browse/NUCJODATIME-14 > [2] > http://isis.markmail.org/search/?q=dn4#query:dn4+page:1+mid:u64ublbsrjnysm2z+state:results > > > On 26 March 2015 at 15:21, Martin Grigorov <[email protected]> wrote: > > > Hi, > > > > DataNucleus doesn't support it. > > See https://issues.apache.org/jira/browse/ISIS-1015 and > > http://www.datanucleus.org/products/accessplatform_3_3/jdo/types.html > > > > Martin Grigorov > > Freelancer, available for hire! > > Wicket Training and Consulting > > https://twitter.com/mtgrigorov > > > > On Thu, Mar 26, 2015 at 4:18 PM, matias nahuel heredia < > > [email protected]> wrote: > > > > > Hi!! i´m MatiasI wanted to ask one question > > > ¿how can i persist a LocalDateTime? > > > i can do this to persist the LocalDate > > > @javax.jdo.annotations.Persistent(defaultFetchGroup="true")private > > > LocalDate dateLocal; > > > @javax.jdo.annotations.Column(allowsNull="false")public LocalDate > > > getDateLocal() { return datelLocal;}public void > > setFechaHora(LocalDate > > > dateLocal) { this.dateLocal = dateLocal;} > > > but i can´t persist LocalDateTime > > > @javax.jdo.annotations.Persistent(defaultFetchGroup="true")private > > > LocalDateTime dateLocal; > > > @javax.jdo.annotations.Column(allowsNull="false")public LocalDateTime > > > getDateLocal() { return dateLocal;}public void > > setFechaHora(LocalDateTime > > > dateLocal) { this.dateLocal = dateLocal;} > > > > >
