Re: Incorrect Insert-Statement Order After Deleting All Objects

2006-12-20 Thread Peter Karich
Hallo Andrus, now it works! Thank you for your helpful answers - not only this time :-) I like the cayenne community ... Is this easier in another version 1.2.1 ? No. But it is fairly easy as it is. Sorry for this question, it was very easy. I though I have to create cayenne from source,

Re: Incorrect Insert-Statement Order After Deleting All Objects

2006-12-18 Thread Andrus Adamchik
On Dec 18, 2006, at 12:51 PM, Peter Karich wrote: So, is there a reset 'button'? Yes, you can restart the entire stack: Configuration.getSharedConfiguration().shutdown(); Configuraion.initializeSharedConfiguration(); This will shutdown the stack and re-read all mapping files. But this

Re: Incorrect Insert-Statement Order After Deleting All Objects

2006-12-17 Thread Andrus Adamchik
Bad query ordering could be the cause here. So if you are changing the mapping dynamically (as your messages hints), you will need to reset the EntitySorter on DataDomain. Unfortunately DataDomain.setEntitySorter(..) is not public in 1.2, but you can always create your own class in