Re: Managing data from two databases.

Tony Giaccone <[email protected]>
Newsgroups gmane.comp.java.cayenne.user
Message-ID <CALQ75kEek2AdmLguN=Nw6qDN2wiV-28J6GR=tfgCpRL6ziNgHg@mail.gmail.com>
Yeah, I want to set that up as a configuration properties, so I can point
it at the right database for that environment. But I get it. It's slick.


Tony

On Thu, Apr 8, 2021 at 6:59 PM John Huss <[email protected]> wrote:

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