Mike Kienenberger schrieb:
> On 4/10/07, Peter Karich <peatha..ahoo.de> wrote:
>> Do you mean that "nonpersistent -> (non)persistent" will be complicated?
>> Why? I can do the following:
>>
>> public void addToManyTarget(Object obj, ...)
>> { if(this.isNonpersistent()) {
>> allObjects.add(obj);
>>
>> } else {
>> if obj.isNonpersistent() {
>> nonpersistentSet.add(obj);
>>
>> } else {
>> super.addToManyTarget(obj, ....);
>> }
>> }
>> }
>>
>> Would this work?
>
> I'm not really following what you're trying to do here. My
> assumption was that your persistent and non-persistent objects were
> instances of the same class.
You are right, they are the same.
But what you could not know is that all my classes extends
"DataBaseImpl" (which extends CayenneDataObject) so this might help me
to apply your approach. I will take a look at it now!
Thank you,
Peter Karich.
This archive was generated by hypermail 2.0.0 : Tue Apr 10 2007 - 17:04:59 EDT