Re: Switching databases

2010-03-23 Thread Michael Gentry
You probably have a few options. The DataMap part of the model could mostly be reused. You could programatically create a DataNode (for your DB connection) and attach it to the DataMap or you could create the DataNode in the modeler and programatically adjust the settings in it. As for the PKs,

Switching databases

2010-03-23 Thread MGargano
Hi, I'm looking into using Cayenne as a backend ORM technology replacing hibernate. Currently our product supports multiple DBMSes (SQL Server, Oracle, DB2) depending on what the client already has installed. In hibernate when switching between oracle and sql server, for example, is j

Re: SubClassing DataObjects

2010-03-23 Thread Joe Baldwin
Michael, > You are supposed to be able to safely put code in the subclass without it > being overwritten. Thanks. I just tested this and it does in fact preserve the subclass if it already exists. Joe

Re: SubClassing DataObjects

2010-03-23 Thread Michael Gentry
On Tue, Mar 23, 2010 at 11:54 AM, Joe Baldwin wrote: > I have a question about management & usage of the data objects generated by > Cayenne Modeler (CM). > > It is clear that the CM auto-generates classes that represent the entities > built using CM (with the underscore prefix).  In addition, i

SubClassing DataObjects

2010-03-23 Thread Joe Baldwin
I have a question about management & usage of the data objects generated by Cayenne Modeler (CM). It is clear that the CM auto-generates classes that represent the entities built using CM (with the underscore prefix). In addition, it auto-generates a sub-class. Also, when any change is made v