Hi everyone,

I have two components which can be deployed on different servers or together
on the same server.
1. One of the entity 'FirstClass' in the first component is mapped to this
table:
table1(
    firstEntityId int primary key,
    name varchar(100) not null,
    description varchar(200)
);

2. One of the entity 'SecondClass' in the other component has to be mapped to this table:
table2 (
    id int primary key,
    name varchar(100) not null,
    firstEntityId int not null REFERENCES table1(firstEntityId)
);

From the above data, I know SecondClass should have a variable of type FirstClass to maintain the
relation.

Question# 1:
When the above two components are deployed on the same server but the tables belong
to different datasources, how are the mappings for the two classes done?

Question# 2:
When the above two components are deployed on different servers and the tables belong
to different datasources, how are the mappings for the two classes done?

Can Hibernate or any other transparent persistence manager handle this requirement?


I appreciate any suggestions.
thanks in advance
Dosapati

Reply via email to