Re: Managing data from two databases.

John Huss <[email protected]>
Newsgroups gmane.comp.java.cayenne.user
Message-ID <CAOUwSGvuv6sK=mDK0D5-bu1ivq9MXH4DtjJrfb8FLpJwJE44Cw@mail.gmail.com>
Yep, it’s that easy. Just assign each DataMap to the correct DataNode.

On Thu, Apr 8, 2021 at 5:50 PM Tony Giaccone <[email protected]> wrote:

> 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.