[Hibernate-JIRA] Created: (HSEARCH-1108) programmatic API doesn't work correctly for entities with @MappedSuperclass parent
by David Janca (JIRA)
programmatic API doesn't work correctly for entities with @MappedSuperclass parent
----------------------------------------------------------------------------------
Key: HSEARCH-1108
URL: https://hibernate.onjira.com/browse/HSEARCH-1108
Project: Hibernate Search
Issue Type: Bug
Components: mapping
Affects Versions: 4.1.0.Final, 4.0.0.Final
Environment: HibernateCore 4.1.2, HSearch 4.1.0, Glassfish3 (JPA) or even as a standalone java app
Reporter: David Janca
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: mapping.property("property", ElementType.FIELD)).
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: mapping.property("property", ElementType.METHOD). But I think that's not the real solution.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 4 months