Hey,
I have a situation when there are 2 tables that are already exist and related to each other using one-to-many relation.
I want to merge them under the same class so when our programmers will work with the tables they could refer to them using one class and not 2 different classes.
For example, if I have these 2 tables under our system:
Table 1: Person_Private_Information
Table 2: Person_Public_Information
I would like to create one class:
Code:
public class Person {
private String fullname;
private String password;
private String nickname;
private String resume;
}
that will work in front of the tables as if it was only one table.
What is the best solution possible for this situation?
Can this solution be implemented using a View (so the class will work over the view instead of working in front of the tables)?
The database that we want to work under is Oracle 10g database.
Thank you,
Tal.