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: Erratic AshwoodEntitySorter NPE on Latest Snapshot

2016-12-08 Thread fael
Hi Michael, Thanks for your reply here! I did indeed come across the discussions on the Ashwood sorter and circular dependencies. When you speak of a circular object graph and taking your A -> B ... -> A example I just wanted to clarify and confirm that your example is essentially as follows; Im

Re: Erratic AshwoodEntitySorter NPE on Latest Snapshot

2016-12-08 Thread fael
Just have an update here - with M3 I am still experiencing a very random occurrence of the following exception still. First of all - when the webapp is run in Jetty or Tomcat (versions/OS don't seem to have an effect at all) there is a roll of the dice as to whether 'Can't extract a master key' wi

Re: Erratic AshwoodEntitySorter NPE on Latest Snapshot

2016-10-25 Thread fael
Hi Ari, I have never actually tried running on 4.0.M3 - have been on a 4.0.M3-SNAPSHOT that I built a couple times earlier in the year. I experienced the problem on 4.0.M2 and my 4.0.M3-SNAPSHOT builds - specifically with Cayenne auto_pk_support it manifested as a NPE. I recently switched to dat

[4.0M3-SNAPSHOT] Modeller and UNSIGNED BIGINT

2016-10-25 Thread fael
Hello all, I was using Cayenne's baked in AUTO_PK_SUPPORT up till very recently. Have now switched to use database-generated keys - I'm using the MySQL driver. My keys are all defined in MySQL as BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT. Foreign key fields are defined as BIGINT(20) UNSIGNED

Re: Erratic AshwoodEntitySorter NPE on Latest Snapshot

2016-10-24 Thread fael
Hello, I'm really sorry for how long it took to respond to this - sadly did not have time to look into it further due to time constraints at work. The problem still exhibits itself - I've rebuilt Cayenne 4 a couple of times - I'm also seeing it manifest with the following exception: Caused by: o

Erratic AshwoodEntitySorter NPE on Latest Snapshot

2016-02-01 Thread fael
I'm using Cayenne for my Tapestry web apps - all run on the same version of Jetty both locally when debugging and live. On occasion - when I deploy a war file to the live server - a 'random' database insert will cause exactly the following exception to occur. I could then change any irrelevant thin

4.0M2 Modeler Migration Tool Empty Change List

2015-03-31 Thread fael
tl;dr - I use the 4.0M2 modeler migrate option on my test schema and it shows me no changes even though there are changes. Hello all! I'm new here - very pleased to be working with Cayenne for my projects. Already finding it far better than some in-house solutions I've used in the past and Hiberna