HbmMetadataSourceProcessor issue when combining annotation and hbm.

Description

After upgrading wildfly from 9.0.2 to 10.0.0.Final, we are experiencing issue with Hibernate MetadatasourceProcessor. Its throwing the following exception when one Entity is annotated with jpa and another entity extends it with hbm mapping.

The hierarchy of entity as follows

When i turned on trace log the above exception is coming after the below debug log

Full discussion can be found here : https://developer.jboss.org/message/952546
and here http://stackoverflow.com/questions/35910271/spring-could-not-create-entitymanagerfactory-after-upgrading-to-hibernate-5-x

Environment

Wildfly.10.0.0.Final, Postgres

Activity

Show:
nick
April 6, 2016, 1:53 PM

any kind update on this ?

Gail Badner
April 8, 2016, 9:04 PM

Please create a pull request (preferred) or attach a runnable test case (see https://github.com/hibernate/hibernate-test-case-templates) that reproduces your issue.

Andrei Arkaev
May 2, 2016, 10:53 AM

Test case added

Gail Badner
May 2, 2016, 8:24 PM

I've confirmed the test case works using 4.3 branch.

, do you have some idea about what is going wrong?

Andrei Arkaev
May 3, 2016, 2:22 AM

The main problem that HbmMetadataSourceProcessorImpl trying to build hierarchy in constructor (line 66) without any knowledge about annontation classes. May be it shouldn't check hierarchy at this moment

Assignee

Unassigned

Reporter

nick

Fix versions

None

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Blocker
Configure