JPA CriteriaDelete doesn't work with OneToOne

Description

The forementioned produces an error:
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'customerId' in 'where clause'

Workaround that works (without CriteriaDelete):

Environment

java8, WildFly10, ubuntu 16, JEE (no Spring), MySQL 5.5 or 5.6

Assignee

Unassigned

Reporter

StanislavKo

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure