RE: Problem with Postgresql TIMESTAMP objects

2008-04-03 Thread Brill Pappin
Isn't type timestamp a long value? - Brill Pappin -Original Message- From: David Goodenough [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2008 4:46 PM To: users@openjpa.apache.org Subject: Problem with Postgresql TIMESTAMP objects In my application I am using an @Version field wh

Re: Enhacing classes with Ant - MissingResourceException

2008-04-03 Thread Andy Schlaikjer
Hi there, I've had some issues with classpaths and the openjpac ant task as well. The following ticket talks about these, as well as a work-around I'd found: https://issues.apache.org/jira/browse/OPENJPA-482 Cheers, Andy Ɓukasz Budnik wrote: Hi All, I'm getting very strange exception: C:\

Problem with Postgresql TIMESTAMP objects

2008-04-03 Thread David Goodenough
In my application I am using an @Version field which is a timestamp. I declare is (in Basic for those following the saga) @Version @Temporal(TemporalType.TIMESTAMP) private Date version; (and that is a java.util.Date, not a java.sql.Date). But when loading the metadata for the classes it says:-

Re: How to PERSIST object without loading references?

2008-04-03 Thread Patrick Linskey
Hi, EntityManager.getReference() is your friend here. -Patrick On Thu, Apr 3, 2008 at 4:19 AM, Ognjen Blagojevic <[EMAIL PROTECTED]> wrote: > Hi all, > > Is there a way to persist an Entity without loading all the referenced > objects? > > I know that this is possible: > > Employee e = new Em

May have part of the answer to my ClassCastException

2008-04-03 Thread David Goodenough
I thought that I might give today's 1.1.0 snapshot a go, just to see if the problem had been fixed along the way. Well it found a problem, but only when I debugged my way through the code using Eclipse. The normal enhancer seems to suppress such messages, but stepping through I found a message to

Re: Please make Exceptions more useful...

2008-04-03 Thread David Goodenough
On Thursday 03 April 2008, David Goodenough wrote: > On Wednesday 02 April 2008, David Goodenough wrote: > > On Wednesday 02 April 2008, Patrick Linskey wrote: > > > Hi, > > > > > > Can you post the full stack trace? > > > > > > -Patrick > > > > > > On Wed, Apr 2, 2008 at 7:59 AM, David Goodenough

Re: JPA and persistence context

2008-04-03 Thread Nino Saturnino Martinez Vazquez Wael
So I guess no one uses OpenJPA in web applications? Only thing I wanted were some snipplets showing how you did transactions etc in a web application. regards Nino Nino Saturnino Martinez Vazquez Wael wrote: Hi I wonder what best practices are on persistence context when running in a web

How to PERSIST object without loading references?

2008-04-03 Thread Ognjen Blagojevic
Hi all, Is there a way to persist an Entity without loading all the referenced objects? I know that this is possible: Employee e = new Employe(); e.setName("John Doe"); e.setIdDepartment(findDepartmentByPrimaryKey(idDept)); e.setIdRank(findRankByPrimaryKey(idRank)); // and so on em.persist(e)

Re: Please make Exceptions more useful...

2008-04-03 Thread David Goodenough
On Wednesday 02 April 2008, David Goodenough wrote: > On Wednesday 02 April 2008, Patrick Linskey wrote: > > Hi, > > > > Can you post the full stack trace? > > > > -Patrick > > > > On Wed, Apr 2, 2008 at 7:59 AM, David Goodenough > > > > <[EMAIL PROTECTED]> wrote: > > > On Wednesday 02 April 2008,