Re: Cascade.Type misbehaviour for PERSIST in a for loop, extra UPDATE statement triggerred in the 2nd loop

2009-02-15 Thread CG
Anybody face this problem before ? On Fri, Feb 13, 2009 at 2:41 PM, CG wrote: > Hi, I encounter a problem with CascadeType for a OneToMany > relationship, hopefully somebody can help ... Thanks. > > I am using OpenJPA 1.0.3 that come with Apache Geronimo 2.1.3 > > > Basical

Cascade.Type misbehaviour for PERSIST in a for loop, extra UPDATE statement triggerred in the 2nd loop

2009-02-12 Thread CG
Hi, I encounter a problem with CascadeType for a OneToMany relationship, hopefully somebody can help ... Thanks. I am using OpenJPA 1.0.3 that come with Apache Geronimo 2.1.3 Basically , I have a loop to create ProductionOrder and the corresponding detail ProductionOrderMaterial After debugging

Re: Error persisting objects with One to Many relationship

2009-02-10 Thread CG
I am facing the similar problem it seems like we are hitting the bug https://issues.apache.org/jira/browse/OPENJPA-327 Any developer here can confirm on this bug ? how is the status ? Thx CG On Tue, Jan 20, 2009 at 2:54 PM, preetiap wrote: > > Hi, > In my application, there

Lazy fetch problem , null value

2009-02-06 Thread CG
terial.java] boms is null I hv do google search , somebody suggest to use property access , but I hv tried that it still does not work. I am now hv no idea how to continue to debug , eventhough using Eager does work, but in my case , I hv to use Lazy fetch because is populating a tree structure .. Any help is much appreaciated , thanks cheers, CG

Re: [JPQL] Problem statement SELECT ... IN () , with parameters

2008-08-13 Thread CG
Thanks! It works! CG On Tue, Aug 12, 2008 at 1:53 AM, Pinaki Poddar <[EMAIL PROTECTED]> wrote: > > Hi, >> q.setParameter("roleIds", sb.toString()); > > Set the IN parameter not as a String but a List where T is the type of > Role.id. > > For example,

[JPQL] Problem statement SELECT ... IN () , with parameters

2008-08-11 Thread CG
output as "1,2" .. To my surprise, only the last result is returned. I can confirm that sb.toString() output as "1,2" , because I have output the value to file to debug. Anybody encounters such problem before, mind to share your solution ? Any input is appreciated , thanks in advanced. CG

No registered metadata for type "class "

2008-04-12 Thread CG
rsistence.xml is to define which entitybean suppose to be persistent. Is it correct ? Any help is appreciated , thanks. CG