Seeking to automate generation the cayenne schema

2006-04-04 Thread Craig Turner
In short: is there a command-line or API-driven way of creating a cayenne configuration by pointing at an existing schema or is the modeler the only supported approach? Cgen should be OK for generating the classes, but I'm interested in an earlier step - generating the XML configuration

test

2006-04-04 Thread Cyp her
_ The new MSN Search Toolbar now includes Desktop search! http://join.msn.com/toolbar/overview

Re: Cayenne.xml not found.

2006-04-04 Thread Andrus Adamchik
There are probably more elegant solutions, but here is a simple one - package all XML files in appName.jar. Andrus On Apr 4, 2006, at 4:47 PM, WONDER wrote: Well the Structure looks like AppName +META-INF +WEB-INF +

Re: Seeking to automate generation the cayenne schema

2006-04-04 Thread Mike Kienenberger
On 4/4/06, Andrus Adamchik [EMAIL PROTECTED] wrote: Everything in Cayenne can be assembled via API. So you'd go about assembling Cayenne stack in the following order: * create DefaultConfiguration * add DataDomain * add DataNode * add DataMap (using org.objectstyle.cayenne.access.DbLoader

accessing cayenne sessions

2006-04-04 Thread Cyp her
Hi I am a newbie to Cayenne but I have been developing with WebObjects for a few years and though I would try something open source. I have been reading a few articles on getting the DataContext namely this one http://www.objectstyle.org/confluence/display/CAYDOC/Web+Applications but it

Re: [solved] Re: Cayenne.xml not found.

2006-04-04 Thread Andrus Adamchik
On Apr 4, 2006, at 6:20 PM, Mike Kienenberger wrote: You don't want to use something like this c:/myPath/Cayenne.xml because it won't work when you go to deploy your application on an application server. Yep. That'll be asking for trouble. I've never used J2EE packaging of WO apps, so I am

Re: [solved] Re: Cayenne.xml not found.

2006-04-04 Thread WONDER
I agree with you, I am trying to do many stuff at once. And this should work. particularly that the application using own framework runs in Eclipse and on WO Server. I belive 50% the problems on deploying an application is something not found. about appName.jar, Yes I am sure, I see the path in

Re: cayenne get accessors

2006-04-04 Thread Andrus Adamchik
Unlike WO key-value coding, Java standard convention (called JavaBeans) is to use the getXyz for an accessor method of a logical property xyz. All the Expression classes (and endless other Java libraries) follow this convention, so I'd strongly recommend not to modify the getters. You'll