programmatic API doesn't work correctly for entities with @MappedSuperclass parent

Description

The hibernate search configuration specified by programmatic API (SearchMapping class) is ignored for entities that have @MappedSuperclass parent.

All fields that are declared in a @MappedSuperclass parent are not recognized by programmatic config and ignored, when configured like this:

We've already found a workaround for this problem - to overwrite getter method in @Entity class (just calling super.getter) and configure it like following:

But I think that's not the real solution.

Environment

HibernateCore 4.1.2, HSearch 4.1.0, Glassfish3 (JPA) or even as a standalone java app

Status

Assignee

Fabio Massimo Ercoli

Reporter

David Janca

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Priority

Major
Configure