Re: cascade deletes

2010-02-18 Thread Jens Oechsler
2010/2/13 Bilgin Ibryam bibr...@gmail.com: Christopher Snow wrote: Is it possible to do a cascade delete in an ofbiz service? Many thanks in advance, Chris Hi Chris, I also have to do cascade deleting data. For this purpose I created a generic service which accepts the entity name and

Re: cascade deletes

2010-02-18 Thread Bilgin Ibryam
Jens Oechsler wrote: Hi I tried to use your patch to delete a product and it seemed to loop between ProductAttribute and ProductTypeAttr I think. I made some improvements to it and tried to delete only FK related data, but even then it doesn't work correct in some situations. As proposed

Re: cascade deletes

2010-02-13 Thread Bilgin Ibryam
Christopher Snow wrote: Is it possible to do a cascade delete in an ofbiz service? Many thanks in advance, Chris Hi Chris, I also have to do cascade deleting data. For this purpose I created a generic service which accepts the entity name and primary key fields and delete the entry and all

Re: cascade deletes

2010-02-13 Thread Ruth Hoffman
Hi Bilgin: I'm sure this is a really stupid question, but that has never stopped me before :-) I'm wonder how this compiles: Delegator delegator = dctx.getDelegator(); Shouldn't that be GenericDelegator ? What have I overlooked? TIA Ruth Bilgin Ibryam wrote: Christopher Snow wrote: Is it

Re: cascade deletes

2010-02-13 Thread Bilgin Ibryam
Ruth Hoffman wrote: Hi Bilgin: I'm sure this is a really stupid question, but that has never stopped me before :-) I'm wonder how this compiles: Delegator delegator = dctx.getDelegator(); Shouldn't that be GenericDelegator ? What have I overlooked? TIA Ruth Ruth, there was some

Re: cascade deletes

2010-02-13 Thread Ruth Hoffman
Hi Bilgin: Thanks. Could you maybe explain the reason why this was done? Ruth Bilgin Ibryam wrote: Ruth Hoffman wrote: Hi Bilgin: I'm sure this is a really stupid question, but that has never stopped me before :-) I'm wonder how this compiles: Delegator delegator = dctx.getDelegator();

cascade deletes

2010-02-02 Thread Christopher Snow
Is it possible to do a cascade delete in an ofbiz service? Many thanks in advance, Chris