Mapping de map un peu complexe
Bonjour.
J'ai trois objets : Table, Objectif, Projet et trois tables:
Code:
1 2 3 4
|
Table ( id, nom, ...)
Objectif (id, #idTable=>Table.id, #idProjet=>Projet.id, ...)
Projet (id, nomProjet, ...) |
Un objectif est associé à une table.
Un objectif n'appartient qu'a un seul projet.
Un projet n'a qu'un objectif par table.
Et dans la classe projet j'ai donc tout logiquement :
Map<Table, Objectif>
Je ne vois pas comment faire le mapping vu que en java c'est Projet->Objectif et en BDD : Objectif->Java
Avez-vous des idées ?
Merci d'avance.