Detection of wrong circularity when two tables with same name in different schemas

Description

There is a problem when two related (in terms of joins) classes have the same name in different schemas.

Attached is a test maven project (run "mvn package" to run the tests) and a fix patch for hibernate-core (based on bc643ddb7cc28db05a7168673746dbf3edee6cf7).

Environment

Hibernate 4.1.0.Release, any database

Assignee

Strong Liu

Reporter

Didier Villevalois

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