Hi Elia,
On Jun 5, 2004, at 12:36 PM, Elia Morling wrote:
> 1. When will the guide to the Cayenne Modeler 1.1 be updated? There
> seems to be lots of undocumented
> features...
Good question. The next big Modeler Guide update will probably happen
between Beta and 1.1 final (we are going to Beta pretty soon). The plan
is to freeze the core framework while in Beta, and continue improving
the modeler. And after modeler changes are in, do the docs.
> For starters, what does Configure ClassPath do?
This sets up internal classpath for operations that require Java
libraries that are not the part of the modeler. The main use is to
specify the location of your JDBC drivers, so that the Modeler can
access your database.
> 2. I can't find anything on the site about the dvmodeler. What is it
> and what does it do?
DVModeler is a tool to configure DataViews
(http://objectstyle.org/cayenne/userguide/dataview/index.html).
DataViews is a cool add-on to Cayenne that allows to bind DataObjects
to the Swing UI. More documentation would surely help, I agree.
> 3. Do I need to Generate Database Schema after adding new tables to my
> database or is the generation
> only needed once?
Generally ongoing schema synchronization is a pretty complex task. How
you do that is your own decision, and depends on the specifics of your
project. As long as Cayenne mapping files stay in sync with the DB you
should be ok. My personal experience shows that generating schema from
the modeler is useful during the initial stages of the project. But
eventually your database is getting populated with data, and becomes
too valuable to just drop and recreate it every time. So you would have
to manually change the DB, and then use the modeler to add/remove
mapping objects one by one. We may better automate the last step at
some point...
> 4. Why is the type of my id column set to Other? It is an integer in
> MySQL...
Huh? Do you have any details?
> 5. Must the cayenne.xml files reside in the root of my application?
> Can I store them somewhere
> else i.e. in a folder named xml? I like to keep my roots tidy...
You can use FileConfiguration to load cayenne.xml from arbitrary
location. See
http://www.objectstyle.org/cayenne/userguide/deploy/custom.html
> 6. Are there any planned features to export data to and from XML?
Could you elaborate on that? I was thinking of writing such feature as
an example, but I have no use for it myself, so I never got to actually
implementing it.
Andrus
This archive was generated by hypermail 2.0.0 : Sat Jun 05 2004 - 15:48:51 EDT