Excellent. Thanks for the help.

On 6/5/07, Michael Gentry <[EMAIL PROTECTED]> wrote:

By default, the Modeler doesn't map the PK/FK attributes into the
ObjEntity (the Java-class portion in the Modeler), but if you map the
PK/FK attributes into the ObjEntity manually, it should "stick" and
should be saved in the model (so it won't be lost).  Then, when you
generate your classes, it'll also generate getters/setters for the
PK/FK values.

/dev/mrg


On 6/5/07, Michael Lepine <[EMAIL PROTECTED]> wrote:
> I am looking into using Cayenne for a new project. I have used it before
for
> new applications but not to integrate with an existing framework which
is
> what I'll be doing on this project. The existing project is a web-based
> application that has a database back-end with almost 300 tables. The
> application manages the generation of primary keys when new objects are
> created. The application currently has a proprietary data access layer
with
> custom objects that I would like to eventually fully replace.
>
> My issue/question is related to the generated Java classes. Of course, I
can
> go into each parent class for the generated objects and add
getter/setter
> methods for primary/foreign keys, but is there any way to force the
Modeler
> to generate getter/setters for these fields?
>
> Thanks for any help.
>
> - Mike
>

Reply via email to