Description:
|
The hibernate search configuration specified by programmatic API (
SearchMapping
_SearchMapping_
class) is ignored for entities that have
_
@
MappedSuperclass
MappedSuperclass_
parent.
All fields that are declared in a
_
@
MappedSuperclass
MappedSuperclass_
parent are not recognized by programmatic config and ignored (when configured like this:
{code}
mapping.property("property", ElementType.FIELD))
.
{code}
We've already found a workaround for this problem - to overwrite getter method in
_
@
Entity
Entity_
class (just calling super.getter) and configure it like following:
{code}
mapping.property("property", ElementType.METHOD)
.
{code}
But I think that's not the real solution.
|