I can't figure out how to organize classes in project...
I need to show all Workers with their history of the specialties (types).
I have 3 tables in DB: Workers: id, name, address Specialty: id, description Worker_Type: id_worker, id_specialty, hire_date
I have:
class Specialty
{
...
}
class Worker
{
private List<Specialty> history;
...
}
How can i map Specialty(Class) to two tables (Specialty and Worker_Specialty) to get all information about worker inculding history ?
Maybe i have to create one more class SpecialtyHistory and map it to Worker_Specialty ?