devo tabella REGIONE:Come mappare la chiave composita dell'entità in JPA?
REG {
id number,
dateCreation Date
}
Ho una tabella LOCALE:
LOCALE {
locale String
}
Ho una tabella REGION_DESCRIPTION:
REGION_DESCRIPTION {
locale String,
regId number,
description
}
REGION_DESCRIPTION ha una chiave composta: locale è un chiave esterna che punta alla tabella LOCALE. E regId punta alla tabella REGION.
Vorrei mappare questo per la mia classe java Regione:
private List<RegionDescription> descriptions;
ho provato diverse approache in JPA. Ma non riesco a far funzionare la mappatura. Eventuali suggerimenti?
esempio di collegamento non è un lavoro. Forse vuoi aggiornare il link – Jyotirup
@Jyotirup - qui andiamo http://docs.oracle.com/cd/B32110_01/web.1013/b28221/cmp30cfg001.htm – topchef