Hello,
I got a big problem that is very simple, but very hard to solve :
- suppose I have a class A, a class B, and an association beetween A and B
Shortly, the database model is :
-------------
table A :
-------------
int x
int y
long B_id
-------------
alter table A add constraint FK0 (B_id) references table B
-------------
table B :
-------------
int z
-------------
My problem is about the object model :
actually, for many specific reasons, I would have such an object model
class A {
int x;
int y;
int B_id;
}
And not the following model :
class A {
int x;
int y;
B z;
}
Has anybody an idea of how to realize that ?
Thanks a lot,
Best regards,
Steve
|