|
|
|
Some regression I discovered in Hibernate Search 4.4:
I have an entity InternalVariation that has a relationship which i s annotated with {{ @IndexedEmbedded }}
{code} @Override @IndexedEmbedded(prefix = "nextApprovalStep_", depth = 2) @ManyToOne(fetch = FetchType.EAGER) public ApprovalConfigurationStep getNextApprovalStep() { return nextWorkflowStep; } {code} This ApprovalConfigurationStep has another relation:
{code} @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; } {code} 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.
|
|
|
|