in my Data Model I need to have a generic Table "DICTIONNARY" that store all values in the data base like this :
TYP KEY VALUE
---------------------------------
COUNTRY TUN TUNISIA
COUNTRY FRA FRANCE
PROFESSION LAW Lawyer
PROFESSION FRA Farmer
and there is other tables that can references the generic table like table Person
CODE NAME COUNTRY PROFESSION
-----------------------------------------------------
1 PAUL TUN FRA
2 Armin FRA DOC
the colomn Person.country just references the column dicionnary.key where typ='COUNTRY' and Person.profession just references the column dictionnary.key where typ='PROFESSION'
is there any solution to make that DataModel with JPA 2.
Thanks in advance !!