I am having troubles with an optimization issue.
Let's imagine that I have to map PERSON owning CARS
I have 2 tables : PERSON and CAR, CAR having a foreign key, the PERSON key.
Now, let's say that I only need the CAR licence plate number in the frame of a one-to-many relation between PERSON and CAR.
How can I map such a relation? Is there a way to map only one particular attribute of an entity?
If I map the Car class, then I will get useless information (other cars attributes) that uses resources...
|