SOLUTION for M:N never delete or always delete, no matter auto-delete=true or auto-delete=false

2003-06-26 Thread Edson Carlos Ericksson Richter
(this is a real long mail, but I've made a long research. The first part is the reason I started to research, the second is explain why this occur. The third is a suggestion of how can we correct). FIRST PART: Ok. To avoid the problem related to OJB always using RemovalAwareCollection, I put my

Re: SOLUTION for M:N never delete or always delete, no matter auto-delete=true or auto-delete=false

2003-06-26 Thread Edson Carlos Ericksson Richter
I don't think so. First of all, OJB is always using RemovalAwareCollection if I don't specify collection-class (I don't know why). Since RemovalAwareCollection has a call to afterStore, the object is always removed. I'm working a months with this problem, and trying to fix it. But only with

Re: SOLUTION for M:N never delete or always delete, no matter auto-delete=true or auto-delete=false

2003-06-26 Thread Edson Carlos Ericksson Richter
Yes, Jakob gets the point. As far as I understood, if I don't specify the collection-class, OJB will use RemovalAwareCollection. Being as is, when I remove an object from the intermediary collection, the N object should be deleted from the N table when we store the M object only when auto-delete