Re: Problem with 3.0M3 (Null pointer): More info

2008-02-05 Thread Andrus Adamchik
Not sure how you mapped it. As long as you didn't have any aggregate functions in "derived" entities, you should be fine with implementing things via ObjEntity inheritance. Andrus On Feb 5, 2008, at 1:48 PM, Alexander Lamb (dev) wrote: Hoho... now I suppose I need to remove the derived DBE

Re: Problem with 3.0M3 (Null pointer): More info

2008-02-05 Thread Alexander Lamb (dev)
Hoho... now I suppose I need to remove the derived DBEntities and instead use class inheritance on the object entities side :-) I ought to be able to do that without changing the code, only the model ? Alex Le 5 févr. 08 à 12:35, Andrus Adamchik a écrit : Aha... That must be it: https:/

Re: Problem with 3.0M3 (Null pointer): More info

2008-02-05 Thread Andrus Adamchik
Aha... That must be it: https://issues.apache.org/cayenne/browse/CAY-921 Andrus On Feb 5, 2008, at 1:21 PM, Alexander Lamb (dev) wrote: More info: What happened is that we have class hierarchies in our models. With M2, it works. With M3, it doesn't. What is also curious is that the inter

Re: Problem with 3.0M3 (Null pointer): More info

2008-02-05 Thread Alexander Lamb (dev)
More info: What happened is that we have class hierarchies in our models. With M2, it works. With M3, it doesn't. What is also curious is that the interface in the Modeler of M3 does not allow anymore to have a DB Entity inherit from another DB Entity ?? I guess that is the problem since

Re: Problem with 3.0M3 (Null pointer)

2008-02-05 Thread Aristedes Maniatis
On 05/02/2008, at 10:05 PM, Alexander Lamb (dev) wrote: But: are the model formats compatible between M2 and M3 ? In other words, can I continue to work with M3 modeler whatever version M2 or M3 of Cayenne I am using? Andrus will have the definitive answer with regard to the standard sc

Re: Problem with 3.0M3 (Null pointer)

2008-02-05 Thread Alexander Lamb (dev)
Ok, I will try. Maybe the model but I maybe did something stupid: I opened the models with the M3 modeler then saved them. Still the crash. Then reverted to M2 (without changing the models). Again a crash which seems to tell us it is not M3. But: are the model formats compatible betwe

Re: Problem with 3.0M3 (Null pointer)

2008-02-05 Thread Andrus Adamchik
On Feb 5, 2008, at 11:02 AM, Alexander Lamb (dev) wrote: Caused by: java.lang.NullPointerException at org .apache .cayenne .map.AshwoodEntitySorter.fillInMetadata(AshwoodEntitySorter.java:265) at org .apache .cayenne .map.AshwoodEntitySorter._indexSorter(AshwoodEntitySorter.java:98)

Problem with 3.0M3 (Null pointer)

2008-02-05 Thread Alexander Lamb (dev)
Hello List, I have a crash with M3 that I didn't have with M2. I updated the models (I have two models), cleaned everything, rebuilt. Upon first commit I get the following crash. I am not doing anything special. Just inserting a record then saving. Several queries worked perfectly well bef