There are 2 existing ways of doing this, and one proposed one. See here for a comparison of the schema creation methods: https://docs.google.com/document/d/1-ZGTCZdw5sksamJCKMT4bdw0zhrftKQptIgozk3ojbc/edit
The new proposed one is available in the sandbox here: http://svn.apache.org/viewvc/cayenne/sandbox/cayenne-migrations/ All of these are be something your java application does at startup time, although if you really wanted a separate external process I'm sure you could find a way. John On Tue, Aug 14, 2012 at 12:57 AM, Martin Weber <[email protected]> wrote: > Hi John, > > main purpose is to make a fresh database installation during an automated > nightly build. After the build I have scripts which create databases and > then load data and run tests. The creation is only possible if I don't need > a GUI. But I think the cdbgen ant task could be what I'm looking at. > > Cheers, > Martin > > > On 14.08.2012 05:38, John Huss wrote: > >> For what purpose? What is your broader goal? There are a few different >> ways of creating the scheme using Cayenne. >> >> John >> >> On Monday, August 13, 2012, Martin Weber wrote: >> >> Hi, >>> >>> Is there a solution to create the database generation SQL script without >>> starting the GUI modeler ? I would like to create the db generation >>> script >>> within an ant task or a shell/batch script. >>> >>> Thanks, >>> Martin >>> >>> >> >
