What's the npe? Maybe we can get them to fix that. Sounds like a bug in our preupdate code.
-Patrick On 11/1/07, Marc Siegel <[EMAIL PROTECTED]> wrote: > Ok, here's what I've tried: > > 1. Tried the maven openjpa:enhance plugin. It bombed with an NPE > 2. Changed everything to property access > - Lazy fetching works, but @PreUpdate is still running on all > objects seen during the transaction > 3. Got maven plugin to work - secret is you need to provide at least > one property > - much faster execution, but the @PreUpdate problem still there > > What's even wierder, is that the @PreUpdate appears to be running > after every persist in a transaction. This turns a loop persisting N > objects into an almost N^2 loop. > > What gives with that? > > -Marc > > > On 11/1/07, Patrick Linskey <[EMAIL PROTECTED]> wrote: > > Hi, > > > > To my knowledge, the Maven plugin works. But I'm not an expert with > > it. You can also directly call the ant enhance task from Maven > > somehow. Again, sadly, I'm no Maven expert. > > > > Property access is a bit intrusive into your model IMO, so some > > alternative that doesn't require that sort of change seems like it'd > > be better. > > > > Meanwhile, we should also beef up our support for lazy fields one way > > or another in that environment. > > > > -Patrick > > > > On Nov 1, 2007 3:06 PM, Marc Siegel <[EMAIL PROTECTED]> wrote: > > > Hi Patrick, > > > > > > This is the second time you've responded just immediately after I > > > uncovered the source of the OpenJPA issue. > > > > > > I assume you are referring to > > > > file:///Developer/Java/docs-apache-openjpa-1.0.0/manual/ref_guide_pc_enhance.html#ref_guide_pc_enhance_unenhanced_types > > > > > > I am using > > > - Java 5 > > > - field access > > > - no java agent specified > > > - building w/ Maven > > > > > > What is the best way to resolve this? > > > - should I move to property-based access? > > > - Is the maven plugin for build-time enhancement working? > > > - something else? > > > > > > Thanks in advance, > > > -Marc > > > > > > > > > > > > On 11/1/07, Patrick Linskey <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > > > > > Are you using the OpenJPA enhancer? If not, are you using field or > > > > property access? > > > > > > > > -Patrick > > > > > > > > On Nov 1, 2007 2:56 PM, Marc Siegel <[EMAIL PROTECTED]> wrote: > > > > > Hi guys, > > > > > > > > > > Has anybody else ever encountered the problem where > > > > > @OneToMany(fetch=FetchType.LAZY) is returning null when the > collection > > > > > is retrieved, but works correctly after an explicit LEFT FETCH JOIN > > > > > query? > > > > > > > > > > The fact that the LEFT FETCH JOIN works means that my setup can't be > > > > > too badly messed up... I am at a loss as to how to proceed here. > > > > > > > > > > Thanks in advance for any help, > > > > > -Marc > > > > > > > > > > > > > > > > > > > > > -- > > > > Patrick Linskey > > > > 202 669 5907 > > > > > > > > > > > > > > > -- > > Patrick Linskey > > 202 669 5907 > > > -- Patrick Linskey 202 669 5907
