which foreign key do you have in mind?
There is no key between the entity and the corresponding audit entity.
You're right there's no foreign key between the entity and the audit entity.
The 2 keys are :
Between the audit revision table and the audit entity table :
alter table AVANTAGE_HISTORY
add constraint FK74C23C62AE8B7ED5
foreign key (REVISION)
Between the audit entity table and a "subclass" (JOINED) audit entity table :
alter table AVANTAGE_POURCENT_HISTORY
add constraint FKB87E578BB96A4281
foreign key (ID, REVISION)
(AVANTAGE_POURCENT is a "subclass" (JOINED) of AVANTAGE)
ah yes, you're right - no way to name these right now. I suppose this should be done by an annotation or some parameter of an existing annotation. Please add a JIRA for this.