When proxying an entity having a private default constructor, the log message is not very clear about the problem

Description

Assuming we have 2 entities:

And we execute the following test case:

The current log message looks like this:

We should provide a more meaningful exception message to indicate that the default private constructor interferes with the Proxy mechanism, and the user should use the public, protected or package-private visibility
instead.

Environment

None

Status

Assignee

Vlad Mihalcea

Reporter

Vlad Mihalcea

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure