Re: support for persisting primitive arrays

2009-04-10 Thread Jeremy Bauer
Hi Heather, OpenJPA supports persisting primitive arrays, but IIRC, you must either: a) Annotate your primitive array with @Lob. The array will get stored as a serialized bytes in the database (and deserialized when retrieved). ex: @Lob double[] mDoubleArray; b) Use the OpenJPA @org.apache.op

support for persisting primitive arrays

2009-04-10 Thread Heather Sterling
I am trying to understand whether OpenJPA supports primitive arrays or not. I am able to persist arrays just fine if they are primitive wrapper classes ( e.g. Double[]). However, I get the following exception for primitive arrays (e.g. double[]): org.apache.openjpa.util.MetaDataException: The

Re: Multiple join fetches

2009-04-10 Thread Daryl Stultz
On Fri, Apr 10, 2009 at 11:46 AM, Miłosz Tylenda wrote: > Hi Daryl, > > Are you sure your native query is what you want? In case I wasn't clear, the "native query" is not part of the code I'm running, but just something I'm running in a sql console to double-check things. > There might be som

Re: Multiple join fetches

2009-04-10 Thread Miłosz Tylenda
Hi Daryl, Are you sure your native query is what you want? There might be some caveats with join precedence. No idea which database you run against but to take an example, MySQL has the following: http://pento.net/2009/04/03/join-and-comma-precedence/ Cheers, Milosz > On Thu, Apr 9, 2009 at

Re: Multiple join fetches

2009-04-10 Thread Daryl Stultz
On Thu, Apr 9, 2009 at 9:20 PM, Daryl Stultz wrote: > > I gave this a good testing and have some interesting (to me) results. My > real object model isn't quite like this, it's a little more complicated. Things seem to be running bad this morning tho' I haven't changed anything fundamentally fr