Flipped logic in duplicate generator name check

Description

The additionally introduced equals check is negated and turns the check upside-down. Now, the check also throws an exception, which crashes e.g. Spring's context creation.

The changes were introduced with this commit.
GitHub - HHH-12157 - TableGenerator defined on one class is not visible on ano...

Exception stack trace:

Environment

None

Assignee

Unassigned

Reporter

Marco Krüger

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

Yes, likely

Requires Release Note

None

Pull Request

None

backportDecision

None

Worked in

5.2.12

Components

Affects versions

Priority

Major
Configure