I am trying to create Student and Address objects from a table called STUDENT_ADDRESS that is defined as below.
Table Name: STUDENT_ADDRESS
Columns:
STUDENT_ID
STUDENT_NAME
STUDENT_END_DATE
STUDENT_ADDRESS_END_DATE
ADDRESS_ID
ADDRESS_VALUE
ADDRESS_END_DATE
I am aware that this is the most inefficient table that can ever be created. But changing the table structure is an uphill battle that I will most likely lose.
What I am trying to do is to create a Student object that has a set of Address objects, and the address objects can be filtered out based on both the STUDENT_ADDRESS_END_DATE
and ADDRESS_END_DATE
.
I hope that made sense. Thanks in advance for your help. :)