We're updating the issue view to help you get more done. 

Nested @IndexedEmbedded is not recognized anymore

Description

Some regression I discovered in Hibernate Search 4.4:

I have an entity InternalVariation that has a relationship which i s annotated with @IndexedEmbedded

1 2 3 4 5 6 @Override @IndexedEmbedded(prefix = "nextApprovalStep_", depth = 2) @ManyToOne(fetch = FetchType.EAGER) public ApprovalConfigurationStep getNextApprovalStep() { return nextWorkflowStep; }

This ApprovalConfigurationStep has another relation:

1 2 3 4 5 6 7 8 9 @IndexedEmbedded(depth = 1, prefix = RESPONSIBLES + JAFConstants.MODEL_SUFFIX) @ManyToMany(fetch = FetchType.LAZY) @JoinTable(name = Constants.MODEL_PREFIX + JAFConstants.MODEL_MANYTOMANY_KEY + TABLE + JAFConstants.MODEL_SUFFIX + SidEntity.SID) @Cascade(CascadeType.SAVE_UPDATE) // don't use cascadetype.all here, we don't want to cascade during deletion here! public Set<SidEntity<?>> getResponsibles() { return responsibles; }

When I index InternalVariation, the getResponsibles was also indexed properly as expected. This does not work anymore in Hibernate Search 4.4, the fields are simply missing.

Environment

None

Status

Assignee

Hardy Ferentschik

Reporter

Niko Wittenbeck

Labels

None

Suitable for new contributors

None

Pull Request

None

Feedback Requested

None

Fix versions

Affects versions

4.4.0.Final

Priority

Major