[ANN] Cayenne 4.0.M4 is released

2016-12-15 Thread Andrus Adamchik
Very glad to announce a new 4.0 milestone release. It was a great collaborative effort that includes a number of important things. So thanks to everybody who was involved in it. So M4... * Stabilizes database reverse-engineering tools for DB-first ORM flow. * Plugs holes and omissions in the f

Re: Set DB Adapter in code

2016-12-15 Thread Andrus Adamchik
> On Oct 18, 2016, at 7:26 PM, Hugi Thordarson wrote: > > Hi all, > when running tests I need to switch the DB adapter to H2Adapter (my DataNode > has a Customer adaptor). How would this be easiest to do? > > Cheers, > - hugi I am a bit late to the game here, but a general customization advi

Re: Erratic AshwoodEntitySorter NPE on Latest Snapshot

2016-12-15 Thread Andrus Adamchik
This looks very close to the error that you had in February: https://lists.apache.org/list.html?user@cayenne.apache.org:2016-2 I just committed some debug code that should help you to identify the entities involved: https://github.com/apache/cayenne/commit/fb4db81d2808b2baced1d0a1417ce3e8c

Re: 4.0M4 - After Updating to M4 Modeler Wants Me To Drop All My Tables When Migrating DB Schema

2016-12-15 Thread Nikita Timofeev
Hello Peter! First option why it is happening is that schema / catalog in your model not same as in DB. If this is true you can simply set in Modeler at DataMap settings correct schema / catalog and update all entities. Regards, Nikita. On Thu, Dec 15, 2016 at 3:29 PM, fael wrote: > Just wante

4.0M4 - After Updating to M4 Modeler Wants Me To Drop All My Tables When Migrating DB Schema

2016-12-15 Thread fael
Just wanted to poke with a potential bug - updated to M4 today and when migrating DB schema I'm asked to now select a schema, once I do the suggested operations include dropping every single table in the schema.. :/ Any ideas? Thanks!! Peter -- View this message in context: http://cayenne.195

Re: Erratic AshwoodEntitySorter NPE on Latest Snapshot

2016-12-15 Thread fael
Hi Andrus, Thanks for this! I have tried this now with limited success in some of the problem cases I was experiencing but now experience a completely new exception I'm afraid!! Stack Trace: java.lang.NullPointerException at org.apache.cayenne.ashwood.AshwoodEntitySorter$DbEntityComparator.compar

Re: Partitioning a query result..

2016-12-15 Thread Andrus Adamchik
Here is another idea: * read all data in one thread using iterated query and DataRows * append received rows to an in-memory queue (individually or in small batches) * run a thread pool of processors that read from the queue and do the work. As with all things performance, this needs to be measur