We're updating the issue view to help you get more done. 

ImplicitNamingStrategyComponentPathImpl generates invalid SQL for Entity with Embedded ElementCollection

Description

ImplicitNamingStrategyComponentPathImpl generates invalid SQL with internal place holders 'collection&&element'.

Please find attached test case.

Below are the relations:
Employee entity has an Embedded class BankAccounts.
BankAccounts has an ElementCollection accounts, of type BankAccount.
BankAccount has ManyToOne relation with User entity.

Exception:
org.h2.jdbc.JdbcSQLException: Unknown data type: "&&"; SQL statement:

create table Employee_bankAccounts_accounts (
Employee_id bigint not null,
bankAccounts_accounts_accountNumber varchar(255),
bankAccounts_accounts_bankName varchar(255),
bankAccounts_accounts_collection&&element_verificationUser_id bigint
)

The internal place holders are not replaced when we have a join column.

Environment

5.2.10.Final

Status

Assignee

Unassigned

Reporter

Joaquim Mascarenhas

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Priority

Blocker