Upgrade 4.2.x -> 4.3.0 error: any types do not have a unique referenced persister

Description

To use JPA 2.1 features, I've been trying to upgrade the Hibernate suite from 4.2.6 to 4.3.0. The application throws an exception when it starts. Apparently while analyzing the entity model - not while creating the database:

any types do not have a unique referenced persister

It relates to an association annotated with @Any. I'm pretty sure I've followed the example of the documentation. Moreover it all works with 4.2.6. So maybe the semantics of @Any were changed, but the documentation wasn't yet updated ? Is it a corner case ?

The association

The embeddable class

For convenience I've put it into an embeddable. Otherwise sooner or later somebody will make a typo in the annotations.

The stack trace

I'm putting all the details into SO at:
https://stackoverflow.com/questions/21046239/hibernate-4-3-0-upgrade-any-types-do-not-have-a-unique-referenced-persister

Environment

JDK 1.6.0_43, Linux Debian Wheezy x64.

Status

Assignee

Unassigned

Reporter

Jan Goyvaerts

Fix versions

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure