You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by matias nahuel heredia <ma...@informaticos.com> on 2015/03/26 15:18:24 UTC

I cant persist LocalDateTime

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;} 		 	   		  

RE: I cant persist LocalDateTime

Posted by matias nahuel heredia <ma...@informaticos.com>.
thanks  i remplace  LocalDateTime to DateTime and it can persist 😊
 
Matias Nahuel HerediaDiplomado de seguridad informáticaAnalista de sistemas de la informaciónCorreo:matias@informaticos.com.arLinkedin:http://ar.linkedin.com/pub/matias-nahuel-heredia/37/358/8abBlog:http://matiasnahuelheredia.blogspot.com.ar

> From: jeroen@stromboli.it
> Date: Thu, 26 Mar 2015 16:42:14 +0100
> Subject: Re: I cant persist LocalDateTime
> To: dev@isis.apache.org
> 
> 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 <mg...@apache.org> 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 <
> > matias@informaticos.com> 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;}
> > >
> >
 		 	   		  

Re: I cant persist LocalDateTime

Posted by Jeroen van der Wal <je...@stromboli.it>.
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 <mg...@apache.org> 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 <
> matias@informaticos.com> 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;}
> >
>

Re: I cant persist LocalDateTime

Posted by Martin Grigorov <mg...@apache.org>.
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 <
matias@informaticos.com> 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;}
>