_MOD columns not named correctly when using custom column names

Description

My envers configuration is:

Now, I have the following entity:

Now, running hibernate creates the following tables:

1. A table `orders` is created with the column (among others)

  • 'customer_account_id'

2. A table `orders_history` is created with the following columns (among others)

  • `customer_account_id`

  • `customer_account_mod`.

But, I think, the name of second column, storing the modification flag, should be `customer_account_id_mod` instead.

So, I think, envers is ignoring the custom column name for the '_mod' fields defined by '@JoinColumn(name = "customer_account_id" ...).

Environment

Tested with MySQL, MariaDB, H2

Assignee

Chris Cranford

Reporter

Thomas Kuhlmann

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure