Managing data from two databases.

Tony Giaccone <[email protected]>
Newsgroups gmane.comp.java.cayenne.user
Message-ID <CALQ75kF2ZDu7BpgZOPqa2=9W2Xt69a1WScQ+zFmjgkort0+onA@mail.gmail.com>
So I have a model, it has two datanodes and two datamaps. Data map/node
one, represents an oracledb, datamap/node two represents a postgres DB.  I
want to read from Oracle, and write to the Postgres.  The data entities in
each database are unique. So MyReadClass lives in dataMapOracle and
MyNewData lives in Postgres.

Do I just spin up the runtime, and fetch from one and create the other and
the write stuff ends up going to the correct database? Is it really
just that easy? Or am I missing something?


Tony
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.