AW: java.lang.ClassFormatError

2008-04-14 Thread Andreas Bobek
Ok I finally found the mistake I made. It has neither something to do with Cayenne nor with Tomcat nor whatever. When building my project I use Ant and I had a build file with a copy statement and a filter token expression which was also applied to the binary class files... http://ant.apache.org/m

Re: Generalized DB editor

2008-04-14 Thread Andrus Adamchik
On Apr 14, 2008, at 6:51 PM, Scott Anderson wrote: Looks like a cast to ObjEntity is in order. Out of curiosity, is there a reason that ObjRelationship.getTargetEntity() returns an Entity and not an ObjEntity? The JavaDoc seems to indicate it always returns an ObjEntity. Poor choice of in

RE: Generalized DB editor

2008-04-14 Thread Scott Anderson
Looks like a cast to ObjEntity is in order. Out of curiosity, is there a reason that ObjRelationship.getTargetEntity() returns an Entity and not an ObjEntity? The JavaDoc seems to indicate it always returns an ObjEntity. -Original Message- From: Kevin Menard [mailto:[EMAIL PROTECTED] Sent

Re: Replace Objects in a Database?

2008-04-14 Thread Andrus Adamchik
no estimates... still "nearest future" ;-) On Apr 14, 2008, at 4:52 PM, Borut Bolčina wrote: Andrus, what is the "status" of this merge functionality? Any estimates? Thanks, Borut 2007/11/29 Andrus Adamchik <[EMAIL PROTECTED]>: In the nearest future we'll be adding a "merge" method to the

Re: Replace Objects in a Database?

2008-04-14 Thread Borut Bolčina
Andrus, what is the "status" of this merge functionality? Any estimates? Thanks, Borut 2007/11/29 Andrus Adamchik <[EMAIL PROTECTED]>: > In the nearest future we'll be adding a "merge" method to the DataContext > that would do exactly what you described here - reattach an already > persistent a

AW: java.lang.ClassFormatError

2008-04-14 Thread Andreas Bobek
I really don't get it, here is how I can reproduce this error: Shop => Servlet _Basket => Superclass Basket => Subclass Basket has no additional declarations. Shop creates a new Basket (within doGet...): Basket basket = (Basket) DataContext.createDataContext().createAndRegisterNewObject(Basket.

Re: java.lang.ClassFormatError

2008-04-14 Thread Malcolm Edgar
I would recommend including a stracktrace of the error, to help debug this. regards Malcolm Edgar On Mon, Apr 14, 2008 at 1:34 PM, Andreas Bobek <[EMAIL PROTECTED]> wrote: > Hello, > > I use cayenne 2.0.4, tomcat 5.5 and jdk 1.5. > I generated (cgen) a superclass (_Basket) and a subclass (Basket