Re: Timestamp in JPQL where clause issue

2009-07-28 Thread wang yu
om" is > a reserved word in JPQL. > > > > - > Pinaki > -- > View this message in context: > http://n2.nabble.com/Timestamp-in-JPQL-where-clause-issue-tp3332190p550.html > Sent from the OpenJPA Users mailing list archive at Nabble.com. >

Re: Timestamp in JPQL where clause issue

2009-07-27 Thread Pinaki Poddar
Hi, Can you please change the parameter name "from" to something else? The error is during parse and may have be related to the fact that "from" is a reserved word in JPQL. - Pinaki -- View this message in context: http://n2.nabble.com/Timestamp-in-JPQ

Re: Timestamp in JPQL where clause issue

2009-07-27 Thread wang yu
And I used OpenJPA 1.2.1. -Yu Wang On Mon, Jul 27, 2009 at 2:20 PM, wang yu wrote: > Hello, > I met an OpenJPA Timestamp filed in JPQL where clause issue. > I used it as: >                EntityManagerFactory factory = > Persistence.createEntityManagerFactory( >                                "t

Timestamp in JPQL where clause issue

2009-07-26 Thread wang yu
Hello, I met an OpenJPA Timestamp filed in JPQL where clause issue. I used it as: EntityManagerFactory factory = Persistence.createEntityManagerFactory( "test", System.getProperties()); String sql= "SELECT callpath FRO