Re: Date Problem

2010-07-15 Thread jingmeifan
. > >> if I get em from jpaTample, and from em find data, do I need always close > em after? > I'm not sure what jpaTample is. You'll need to close your em once you're > done with it. It depends from application to application. > > hth, > Rick > >

Re: Date Problem

2010-07-15 Thread Rick Curtis
>Sorry, I am afraid I cannot. Without at minimum a snippet of code it's pretty hard to help you out. > Would you please let men know what bug on detachCopy method? I'm not sure what you're asking here. > if I get em from jpaTample, and from em find data, do I need always close em after? I'm not s

Re: Date Problem

2010-07-15 Thread jingmeifan
Hi Rick, Sorry, I am afraid I cannot. Would you please let men know what bug on detachCopy method? And one more question, if I get em from jpaTample, and from em find data, do I need always close em after? Thanks, Jane -- View this message in context: http://openjpa.208410.n2.nabble.com/Date

Re: Date Problem

2010-07-15 Thread Rick Curtis
Hmm, can you post a small unit test? Thanks, Rick

Re: Date Problem

2010-07-15 Thread jingmeifan
Sorry, I mean the entity didn't been detached. -- View this message in context: http://openjpa.208410.n2.nabble.com/Date-Problem-tp2943310p5298472.html Sent from the OpenJPA Users mailing list archive at Nabble.com.

Re: Date Problem

2010-07-15 Thread jingmeifan
he version, where am I still missing? Thanks, Jane -- View this message in context: http://openjpa.208410.n2.nabble.com/Date-Problem-tp2943310p5298075.html Sent from the OpenJPA Users mailing list archive at Nabble.com.

Re: Date Problem

2010-07-15 Thread Rick Curtis
Try changing version="1.0" to version="2.0" and removing don't use the detachCopy method. I think that this is a bug that I reported [1] a while back. Thanks, Rick [1] https://issues.apache.org/jira/browse/OPENJPA-1672

Re: Date Problem

2010-07-15 Thread jingmeifan
version="1.0"> org.apache.openjpa.persistence.PersistenceProviderImpl model.Message -- View this message in context: http://openjpa.208410.n2.nabble.com/Date-Problem-tp2943310p5297788.html Sent from the OpenJPA Users mailing list archive at Nabble.com.

Re: Date Problem

2010-07-15 Thread Rick Curtis
Can you post your persistence.xml file? Thanks, Rick

Re: Date Problem

2010-07-15 Thread jingmeifan
Hi Rick, I solved this problem by casting the EntityManger to OpenJPAEntityManager and using detachCpoy method which it return detached entity. Properly detach method is a bug need fix. Thanks, Jane -- View this message in context: http://openjpa.208410.n2.nabble.com/Date-Problem

Re: Date Problem

2010-07-14 Thread jingmeifan
Thank you for quick responding. I am using openjpa 2.0.0, the latest version. -- View this message in context: http://openjpa.208410.n2.nabble.com/Date-Problem-tp2943310p5295621.html Sent from the OpenJPA Users mailing list archive at Nabble.com.

Re: Date Problem

2010-07-14 Thread Rick Curtis
What version of OpenJPA are you on? Thanks, Rick

Re: Date Problem

2010-07-14 Thread jingmeifan
://openjpa.208410.n2.nabble.com/Date-Problem-tp2943310p5294791.html Sent from the OpenJPA Users mailing list archive at Nabble.com.

Re: Date Problem

2009-05-21 Thread Kevin Sutter
ing changeUser; > > > > > > > > > > > > > > > When I try to grab an object with these embedded values I get the > > > error: > > > > > > > > > > > > > > > > > > > > java.lang.AssertionError: javax.ejb.EJBException: Unknown Container > > > > > Exception: java.rmi.RemoteException: Cannot read the response from > > the > > > > > server. The class for an object being returned is not located in > > this > > > > > system:; nested exception is: > > > > > java.lang.ClassNotFoundException: > > > > > org.apache.openjpa.util.java$sql$Date$proxy > > > > > > > > > > I have tried multiple ways with adding and removing @Temporal etc. > > Oh > > > > one > > > > > more thing, this is a MySQL database that I am trying to access. > > > Please > > > > > give me any help you can. Thanks. > > > > > > > > > > > > > > > Russell Collins > > > > > > > > > > > > > > > > > > > > > > > -- > > > > View this message in context: > > > > http://n2.nabble.com/Date-Problem-tp2943310p2945766.html > > > > Sent from the OpenJPA Users mailing list archive at Nabble.com. > > > > > > > > > > > > > >

Re: Date Problem

2009-05-20 Thread Michael Dick
javax.ejb.EJBException: Unknown Container > > > > Exception: java.rmi.RemoteException: Cannot read the response from > the > > > > server. The class for an object being returned is not located in > this > > > > system:; nested exception is: > > > > java.lang.ClassNotFoundException: > > > > org.apache.openjpa.util.java$sql$Date$proxy > > > > > > > > I have tried multiple ways with adding and removing @Temporal etc. > Oh > > > one > > > > more thing, this is a MySQL database that I am trying to access. > > Please > > > > give me any help you can. Thanks. > > > > > > > > > > > > Russell Collins > > > > > > > > > > > > > > > > > > -- > > > View this message in context: > > > http://n2.nabble.com/Date-Problem-tp2943310p2945766.html > > > Sent from the OpenJPA Users mailing list archive at Nabble.com. > > > > > > > > >

Re: Date Problem

2009-05-20 Thread Kevin Sutter
mi.RemoteException: Cannot read the response from the > > > server. The class for an object being returned is not located in this > > > system:; nested exception is: > > > java.lang.ClassNotFoundException: > > > org.apache.openjpa.util.java$sql$Date$proxy > > > > > > I have tried multiple ways with adding and removing @Temporal etc. Oh > > one > > > more thing, this is a MySQL database that I am trying to access. > Please > > > give me any help you can. Thanks. > > > > > > > > > Russell Collins > > > > > > > > > > > > > -- > > View this message in context: > > http://n2.nabble.com/Date-Problem-tp2943310p2945766.html > > Sent from the OpenJPA Users mailing list archive at Nabble.com. > > > > >

RE: Date Problem

2009-05-20 Thread Russell Collins
Wednesday, May 20, 2009 9:17 AM To: users@openjpa.apache.org Subject: Re: Date Problem Hi Russell, I think you're hitting the same problem mentioned here [1]. The short answer is that the client needs to have access to openjpa-1.2.1.jar so it can load the proxy classes. The larger question is

Re: Date Problem

2009-05-20 Thread Michael Dick
ssNotFoundException: > > org.apache.openjpa.util.java$sql$Date$proxy > > > > I have tried multiple ways with adding and removing @Temporal etc. Oh > one > > more thing, this is a MySQL database that I am trying to access. Please > > give me any help you can. Thanks. > > > > > > Russell Collins > > > > > > > > -- > View this message in context: > http://n2.nabble.com/Date-Problem-tp2943310p2945766.html > Sent from the OpenJPA Users mailing list archive at Nabble.com. > >

Re: Date Problem

2009-05-20 Thread is_maximum
Oh one > more thing, this is a MySQL database that I am trying to access. Please > give me any help you can. Thanks. > > > Russell Collins > > > -- View this message in context: http://n2.nabble.com/Date-Problem-tp2943310p2945766.html Sent from the OpenJPA Users mailing list archive at Nabble.com.

Date Problem

2009-05-19 Thread Russell Collins
Hello, I am new to OpenJPA and the entire persistence objects so bear with me a little. First of all, I am using Apache Geronimo which has OpenJPA version1.2.1 and I am moving from Hibernate (which is a pain to try to work in Geronimo). Everything works fine except for Dates and Times. I have