| Hugo Espresati, I am simply pointing out that using this type of mapping with Envers introduces 2 failure concerns, depending on whether B is null or whether B is not null. When B is null, this introduces the NULL not allowed for column 'B_ID' error which comes from the fact that Envers doesn't recognize that you have mapped the relation as optional. When B is not null, this introduces the referential integrity error which comes from the fact that Envers didn't map the relation for entity B as being the inverse. |