Re: Copying objects from one database to another

2007-04-19 Thread jerome moliere
2007/4/18, jerome moliere <[EMAIL PROTECTED]>: 2007/4/17, Michael Gentry <[EMAIL PROTECTED]>: > > This isn't really an answer to your question, but could help you. If > your > schemas are the same in db1 and db2, I would set up a shared data map > and > then copy it into the db1 and db2 data

Re: Copying objects from one database to another

2007-04-18 Thread jerome moliere
2007/4/17, Michael Gentry <[EMAIL PROTECTED]>: This isn't really an answer to your question, but could help you. If your schemas are the same in db1 and db2, I would set up a shared data map and then copy it into the db1 and db2 data domains: http://cwiki.apache.org/CAY/copying-datamaps.html

Copying objects from one database to another

2007-04-17 Thread jerome moliere
Hi all, this is my question of the day (waiting for the tip of the day andrus -) ) Let's imagine a database db1 with a catalog1, schema 1 containing table T1 mapped as p1.T1 with Cayenne db2 (catalog2,schema2) containing same T1 table mapped as p2.T1 with Cayenne db1 and db2 live on the same mac

Re: Copying objects from one database to another

2007-04-17 Thread Michael Gentry
This isn't really an answer to your question, but could help you. If your schemas are the same in db1 and db2, I would set up a shared data map and then copy it into the db1 and db2 data domains: http://cwiki.apache.org/CAY/copying-datamaps.html Easier to maintain, don't need duplicate java cla