Skip to content

Commit

Permalink
HSEARCH-3269 Mark association ReindexOnUpdate.SHALLOW
Browse files Browse the repository at this point in the history
  • Loading branch information
fax4ever committed Oct 15, 2020
1 parent 7599ec8 commit 433a1bf
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@
import javax.persistence.Id;
import javax.persistence.ManyToMany;

import org.hibernate.search.mapper.pojo.automaticindexing.ReindexOnUpdate;
import org.hibernate.search.mapper.pojo.mapping.definition.annotation.DocumentId;
import org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed;
import org.hibernate.search.mapper.pojo.mapping.definition.annotation.IndexedEmbedded;
import org.hibernate.search.mapper.pojo.mapping.definition.annotation.IndexingDependency;

/**
* @author Yoann Rodiere
Expand All @@ -30,6 +32,7 @@ public class CompanyGroup {

@ManyToMany
@IndexedEmbedded
@IndexingDependency(reindexOnUpdate = ReindexOnUpdate.SHALLOW)
private List<Company> companies = new ArrayList<>();

public CompanyGroup() {
Expand Down

0 comments on commit 433a1bf

Please sign in to comment.