Re: Cayenne 3.0M2 for Production

2007-11-26 Thread Andrus Adamchik
Yeah... Previously existing API that was not marked for deprecation should remain fairly stable. Runtime, while undergoing a number of changes, is still production quality. I am using it on a very active live site... Essentially the biggest risk is that the _new_ API introduced during 3.0

CayenneModeler and Reengineering Database Schema

2007-11-26 Thread Michael Lepine
Hello all. I am currently using CayenneModeler version 2.0.3 to reengineer a database schema and generate the subsequent Java classes. Some of the ObjEntity instances have primary/foreign keys mapped manually because these keys are generated by another process (outside of the Cayenne framework). T

Re: Cayenne 3.0M2 for Production

2007-11-26 Thread Tore Halset
Hello. We are using M2 in production in a pretty busy system. We use only the "classic cayenne" stuff, but it is working very well. Regards, - Tore. On Nov 26, 2007, at 22:56, Malcolm Edgar wrote: Hi All, I would like to know peoples experience in using Cayenne 3.0M2 for Production appli

Cayenne 3.0M2 for Production

2007-11-26 Thread Malcolm Edgar
Hi All, I would like to know peoples experience in using Cayenne 3.0M2 for Production applications, or is Cayenne 2.0.x still the recommended release. I am looking a upgrading our Cayenne 1.2.x applications. By the way I like the free search field in the Cayenne modeler. regards Malcolm Edgar

Re: relationship query and entity qualifier

2007-11-26 Thread Marcin Skladaniec
Hi I have worked around this problem by inverting the relationship (it was one-to-one) and putting the fk on the other side. The problem I have now is that there is no simple way of querying for objects with this relationship set. The schema I'm using has a Contact related to Student and/

Re: relationship query and entity qualifier

2007-11-26 Thread Andrus Adamchik
Hi Marcin, Probably a bug in faulting... The analysis below is from memory. I haven't checked the code to confirm it :-). Cayenne always assumes that if a given object contains an FK to a target object (non- flattened to-one), that a target object exists. This can potentially save a trip t

Re: Cayenne and Apache Wicket

2007-11-26 Thread Robert Zeigler
I use cayenne + tapestry a lot... would be nice to have a tapestry- cayenne module, imo. Although I agree that integration is already pretty trivial. I may put something together one of these days along those lines. Cheers, Robert On Nov 26, 2007, at 11/269:25 AM , Michael Gentry wrote:

Re: Cayenne and Apache Wicket

2007-11-26 Thread Michael Gentry
I like the "Graduated!" banner at http://wicket.apache.org/ :-) It has been a year or so since I last looked at Wicket (I've mostly used Tapestry outside of WebObjects). Perhaps this brings up a broader question of how should Cayenne try to interact and relate with other Apache projects? Tapestr

Re: Cayenne and Apache Wicket

2007-11-26 Thread Andrus Adamchik
oops... "heard" -> "had" On Nov 26, 2007, at 2:45 PM, Andrus Adamchik wrote: Me too. Never heard enough motivation to try Wicket, but if somebody does a Cayenne tutorial with it, I might as well do it :-) Andrus On Nov 24, 2007, at 11:01 AM, Adrian Wiesmann wrote: Hello all Has anybody ex

Re: Cayenne and Apache Wicket

2007-11-26 Thread Andrus Adamchik
Me too. Never heard enough motivation to try Wicket, but if somebody does a Cayenne tutorial with it, I might as well do it :-) Andrus On Nov 24, 2007, at 11:01 AM, Adrian Wiesmann wrote: Hello all Has anybody experience using Cayenne with the Apache Wicket Framework? I'd be interested t

Re: ExtendedType and IN operator

2007-11-26 Thread Andrus Adamchik
Chris, I vaguely remember this being a problem in the past and us fixing it... I couldn't find any references via Google (having "IN" as a keyword doesn't help). So could you post the code that builds the query and the exact Cayenne version. Thanks Andrus On Nov 23, 2007, at 3:39 AM, Ch

Re: rollbackChangesLocally

2007-11-26 Thread Andrus Adamchik
yeah, still not implemented. Thanks for pointing it out, adding to my long todo: https://issues.apache.org/cayenne/browse/CAY-716 Andrus On Nov 23, 2007, at 3:25 PM, Philip Miller wrote: Hi. This is an old one - I believe still waiting for implementation as of 2.0.4. Is there a Jira ref?

Re: Hollow Objects after sending them via JMS

2007-11-26 Thread Andrus Adamchik
Here is a better version that takes into account superclass behavior: public class SerializableDO extends CayenneDataObject { private void writeObject(ObjectOutputStream out) throws IOException { if (persistenceState == PersistenceState.COMMITTED) {

Re: Hollow Objects after sending them via JMS

2007-11-26 Thread Andrus Adamchik
Hi Detlef, I guess the easiest way to handle this is to restore default Java serialization behavior, overriding CayenneDataObject context based deserialization. E.g. you may use the following class as a customer superclass of all your entity classes: public class SerializableDO extends Ca

Re: Deletion of objects

2007-11-26 Thread Andrus Adamchik
Would be nice to open a Jira with details. We should be able to do something about it. Andrus On Nov 22, 2007, at 12:43 AM, Jan Lendholt wrote: Okay, I found the error - I used a wrong datatype for the matchExpression. Well, in fact this is a stupid mistake by me; but in my opinion the f