Yes, I would think it'd be possible to do this, but you're actually
talking about doing two different and unrelated things.
As for creating new data maps and entity representations, it is a
matter of creating DataDomain/DataMap/ObjEntity/DbEntity instances
with code rather than loading them from an xml file.
The generated entity classes are just convenience classes to make
working with your data easier and typesafe. If you look at the code
of the generated classes, it just delegates those calls back to
CayenneDataObject, passing the attributes as strings. It works like
EOGenericRecord if you're familiar with EOF.
On 12/8/05, Jonathan Carlson <Jonathan.Carlso..atun.com> wrote:
> Just curious,
>
> Is it possible to define a database mapping using generic DataObjects
> instead of a subclass? I'm just curious how dynamic Cayenne is, or if
> some class compilation is necessary to add support for a new table.
>
> Thanks,
>
> - Jonathan
>
>
>
> ______________________________________________________________________
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
>
> Katun Corporation -- www.katun.com
> _____________________________________________________________________
>
This archive was generated by hypermail 2.0.0 : Thu Dec 08 2005 - 14:45:23 EST