I removed the @AssociationInverseSide annotations and corrected the JPA mappings. I did not have the @ManytoOne annotations but the TO ( not to ) was a copy paste error.
I am still getting below error:
org.hibernate.search.util.common.SearchException: HSEARCH000520: Hibernate Search encountered failures during bootstrap. Failures:
Hibernate ORM mapping:
type 'com.csc.pt.svc.data.to.Basclt0900TO':
path '.basclt0100toList<collection>.agentnum<no value extractors>':
failures:
- HSEARCH700020: Unable to find the inverse side of the association on type 'com.csc.pt.svc.data.to.Basclt0900TO' at path '.basclt0100toList<collection>'. Hibernate Search needs this information in order to reindex 'com.csc.pt.svc.data.to.Basclt0900TO' when 'com.csc.pt.svc.data.to.Basclt0100TO' is modified. You can solve this error by defining the inverse side of this association, either with annotations specific to your integration (@OneToMany(mappedBy = ...) in Hibernate ORM) or with the Hibernate Search @AssociationInverseSide annotation. Alternatively, if you do not need to reindex 'com.csc.pt.svc.data.to.Basclt0900TO' when 'com.csc.pt.svc.data.to.Basclt0100TO' is modified, you can disable automatic reindexing with @IndexingDependency(reindexOnUpdate = ReindexOnUpdate.SHALLOW).
path '.basclt0100toList<collection>.longname<no value extractors>':
failures:
- HSEARCH700020: Unable to find the inverse side of the association on type 'com.csc.pt.svc.data.to.Basclt0900TO' at path '.basclt0100toList<collection>'. Hibernate Search needs this information in order to reindex 'com.csc.pt.svc.data.to.Basclt0900TO' when 'com.csc.pt.svc.data.to.Basclt0100TO' is modified. You can solve this error by defining the inverse side of this association, either with annotations specific to your integration (@OneToMany(mappedBy = ...) in Hibernate ORM) or with the Hibernate Search @AssociationInverseSide annotation. Alternatively, if you do not need to reindex 'com.csc.pt.svc.data.to.Basclt0900TO' when 'com.csc.pt.svc.data.to.Basclt0100TO' is modified, you can disable automatic reindexing with @IndexingDependency(reindexOnUpdate = ReindexOnUpdate.SHALLOW).
path '.basclt0100toList<collection>.midname<no value extractors>':
failures:
- HSEARCH700020: Unable to find the inverse side of the association on type 'com.csc.pt.svc.data.to.Basclt0900TO' at path '.basclt0100toList<collection>'. Hibernate Search needs this information in order to reindex 'com.csc.pt.svc.data.to.Basclt0900TO' when 'com.csc.pt.svc.data.to.Basclt0100TO' is modified. You can solve this error by defining the inverse side of this association, either with annotations specific to your integration (@OneToMany(mappedBy = ...) in Hibernate ORM) or with the Hibernate Search @AssociationInverseSide annotation. Alternatively, if you do not need to reindex 'com.csc.pt.svc.data.to.Basclt0900TO' when 'com.csc.pt.svc.data.to.Basclt0100TO' is modified, you can disable automatic reindexing with @IndexingDependency(reindexOnUpdate = ReindexOnUpdate.SHALLOW).
path '.basclt0100toList<collection>.nametype<no value extractors>':
failures:
- HSEARCH700020: Unable to find the inverse side of the association on type 'com.csc.pt.svc.data.to.Basclt0900TO' at path '.basclt0100toList<collection>'. Hibernate Search needs this information in order to reindex 'com.csc.pt.svc.data.to.Basclt0900TO' when 'com.csc.pt.svc.data.to.Basclt0100TO' is modified. You can solve this error by defining the inverse side of this association, either with annotations specific to your integration (@OneToMany(mappedBy = ...) in Hibernate ORM) or with the Hibernate Search @AssociationInverseSide annotation. Alternatively, if you do not need to reindex 'com.csc.pt.svc.data.to.Basclt0900TO' when 'com.csc.pt.svc.data.to.Basclt0100TO' is modified, you can disable automatic reindexing with @IndexingDependency(reindexOnUpdate = ReindexOnUpdate.SHALLOW).
path '.basclt0100toList<collection>.phone1<no value extractors>':
failures:
- HSEARCH700020: Unable to find the inverse side of the association on type 'com.csc.pt.svc.data.to.Basclt0900TO' at path '.basclt0100toList<collection>'. Hibernate Search needs this information in order to reindex 'com.csc.pt.svc.data.to.Basclt0900TO' when 'com.csc.pt.svc.data.to.Basclt0100TO' is modified. You can solve this error by defining the inverse side of this association, either with annotations specific to your integration (@OneToMany(mappedBy = ...) in Hibernate ORM) or with the Hibernate Search @AssociationInverseSide annotation. Alternatively, if you do not need to reindex 'com.csc.pt.svc.data.to.Basclt0900TO' when 'com.csc.pt.svc.data.to.Basclt0100TO' is modified, you can disable automatic reindexing with @IndexingDependency(reindexOnUpdate = ReindexOnUpdate.SHALLOW).
path '.basclt0300toList<collection>.addrln1<no value extractors>':
failures:
- HSEARCH700020: Unable to find the inverse side of the association on type 'com.csc.pt.svc.data.to.Basclt0900TO' at path '.basclt0300toList<collection>'. Hibernate Search needs this information in order to reindex 'com.csc.pt.svc.data.to.Basclt0900TO' when 'com.csc.pt.svc.data.to.Basclt0300TO' is modified. You can solve this error by defining the inverse side of this association, either with annotations specific to your integration (@OneToMany(mappedBy = ...) in Hibernate ORM) or with the Hibernate Search @AssociationInverseSide annotation. Alternatively, if you do not need to reindex 'com.csc.pt.svc.data.to.Basclt0900TO' when 'com.csc.pt.svc.data.to.Basclt0300TO' is modified, you can disable automatic reindexing with @IndexingDependency(reindexOnUpdate = ReindexOnUpdate.SHALLOW).
path '.basclt0300toList<collection>.addrln2<no value extractors>':
failures:
- HSEARCH700020: Unable to find the inverse side of the association on type 'com.csc.pt.svc.data.to.Basclt0900TO' at path '.basclt0300toList<collection>'. Hibernate Search needs this information in order to reindex 'com.csc.pt.svc.data.to.Basclt0900TO' when 'com.csc.pt.svc.data.to.Basclt0300TO' is modified. You can solve this error by defining the inverse side of this association, either with annotations specific to your integration (@OneToMany(mappedBy = ...) in Hibernate ORM) or with the Hibernate Search @AssociationInverseSide annotation. Alternatively, if you do not need to reindex 'com.csc.pt.svc.data.to.Basclt0900TO' when 'com.csc.pt.svc.data.to.Basclt0300TO' is modified, you can disable automatic reindexing with @IndexingDependency(reindexOnUpdate = ReindexOnUpdate.SHALLOW).
path '.basclt0300toList<collection>.addrln3<no value extractors>':
failures:
- HSEARCH700020: Unable to find the inverse side of the association on type 'com.csc.pt.svc.data.to.Basclt0900TO' at path '.basclt0300toList<collection>'. Hibernate Search needs this information in order to reindex 'com.csc.pt.svc.data.to.Basclt0900TO' when 'com.csc.pt.svc.data.to.Basclt0300TO' is modified. You can solve this error by defining the inverse side of this association, either with annotations specific to your integration (@OneToMany(mappedBy = ...) in Hibernate ORM) or with the Hibernate Search @AssociationInverseSide annotation. Alternatively, if you do not need to reindex 'com.csc.pt.svc.data.to.Basclt0900TO' when 'com.csc.pt.svc.data.to.Basclt0300TO' is modified, you can disable automatic reindexing with @IndexingDependency(reindexOnUpdate = ReindexOnUpdate.SHALLOW).
path '.basclt0300toList<collection>.addrln4<no value extractors>':
failures:
- HSEARCH700020: Unable to find the inverse side of the association on type 'com.csc.pt.svc.data.to.Basclt0900TO' at path '.basclt0300toList<collection>'. Hibernate Search needs this information in order to reindex 'com.csc.pt.svc.data.to.Basclt0900TO' when 'com.csc.pt.svc.data.to.Basclt0300TO' is modified. You can solve this error by defining the inverse side of this association, either with annotations specific to your integration (@OneToMany(mappedBy = ...) in Hibernate ORM) or with the Hibernate Search @AssociationInverseSide annotation. Alternatively, if you do not need to reindex 'com.csc.pt.svc.data.to.Basclt0900TO' when 'com.csc.pt.svc.data.to.Basclt0300TO' is modified, you can disable automatic reindexing with @IndexingDependency(reindexOnUpdate = ReindexOnUpdate.SHALLOW).
path '.basclt0300toList<collection>.addrtype<no value extractors>':
failures:
- HSEARCH700020: Unable to find the inverse side of the association on type 'com.csc.pt.svc.data.to.Basclt0900TO' at path '.basclt0300toList<collection>'. Hibernate Search needs this information in order to reindex 'com.csc.pt.svc.data.to.Basclt0900TO' when 'com.csc.pt.svc.data.to.Basclt0300TO' is modified. You can solve this error by defining the inverse side of this association, either with annotations specific to your integration (@OneToMany(mappedBy = ...) in Hibernate ORM) or with the Hibernate Search @AssociationInverseSide annotation. Alternatively, if you do not need to reindex 'com.csc.pt.svc.data.to.Basclt0900TO' when 'com.csc.pt.svc.data.to.Basclt0300TO' is modified, you can disable automatic reindexing with @IndexingDependency(reindexOnUpdate = ReindexOnUpdate.SHALLOW).
path '.basclt0300toList<collection>.city<no value extractors>':
failures:
- HSEARCH700020: Unable to find the inverse side of the association on type 'com.csc.pt.svc.data.to.Basclt0900TO' at path '.basclt0300toList<collection>'. Hibernate Search needs this information in order to reindex 'com.csc.pt.svc.data.to.Basclt0900TO' when 'com.csc.pt.svc.data.to.Basclt0300TO' is modified. You can solve this error by defining the inverse side of this association, either with annotations specific to your integration (@OneToMany(mappedBy = ...) in Hibernate ORM) or with the Hibernate Search @AssociationInverseSide annotation. Alternatively, if you do not need to reindex 'com.csc.pt.svc.data.to.Basclt0900TO' when 'com.csc.pt.svc.data.to.Basclt0300TO' is modified, you can disable automatic reindexing with @IndexingDependency(reindexOnUpdate = ReindexOnUpdate.SHALLOW).
path '.basclt0300toList<collection>.country<no value extractors>':
failures:
- HSEARCH700020: Unable to find the inverse side of the association on type 'com.csc.pt.svc.data.to.Basclt0900TO' at path '.basclt0300toList<collection>'. Hibernate Search needs this information in order to reindex 'com.csc.pt.svc.data.to.Basclt0900TO' when 'com.csc.pt.svc.data.to.Basclt0300TO' is modified. You can solve this error by defining the inverse side of this association, either with annotations specific to your integration (@OneToMany(mappedBy = ...) in Hibernate ORM) or with the Hibernate Search @AssociationInverseSide annotation. Alternatively, if you do not need to reindex 'com.csc.pt.svc.data.to.Basclt0900TO' when 'com.csc.pt.svc.data.to.Basclt0300TO' is modified, you can disable automatic reindexing with @IndexingDependency(reindexOnUpdate = ReindexOnUpdate.SHALLOW).
path '.basclt0300toList<collection>.state<no value extractors>':
failures:
- HSEARCH700020: Unable to find the inverse side of the association on type 'com.csc.pt.svc.data.to.Basclt0900TO' at path '.basclt0300toList<collection>'. Hibernate Search needs this information in order to reindex 'com.csc.pt.svc.data.to.Basclt0900TO' when 'com.csc.pt.svc.data.to.Basclt0300TO' is modified. You can solve this error by defining the inverse side of this association, either with annotations specific to your integration (@OneToMany(mappedBy = ...) in Hibernate ORM) or with the Hibernate Search @AssociationInverseSide annotation. Alternatively, if you do not need to reindex 'com.csc.pt.svc.data.to.Basclt0900TO' when 'com.csc.pt.svc.data.to.Basclt0300TO' is modified, you can disable automatic reindexing with @IndexingDependency(reindexOnUpdate = ReindexOnUpdate.SHALLOW).
path '.basclt0300toList<collection>.zipcode<no value extractors>':
failures:
- HSEARCH700020: Unable to find the inverse side of the association on type 'com.csc.pt.svc.data.to.Basclt0900TO
Basclt0100 class :
@Entity
@Indexed(index="client_0100")
public class Basclt0100TO {
@ManyToOne
private Basclt0900TO basclt0900to;
private DBAccessStatus dBAccessStatus;
private String groupno = "";
@GenericField(searchable=Searchable.YES, projectable = Projectable.YES, name="nameType")
private char nametype;
@FullTextField(searchable=Searchable.YES, projectable = Projectable.YES, name="midname")
private String midname = "";
@FullTextField(searchable=Searchable.YES,projectable = Projectable.YES,name = "agentnum")
private String agentnum = "";
@FullTextField(searchable=Searchable.YES, projectable = Projectable.YES, name="longname",analyzer = "nameKeywordAnalyzer")
private String longname = "";
@FullTextField(searchable=Searchable.YES, projectable = Projectable.YES, name="phone1",analyzer = "alphaNumericAnalyzer")
private String phone1 = "";
private String phone2 = "";
private String fedtaxid = "";
Basclt0300 class:
@Entity
@Indexed(index="client_0300")
public class Basclt0300TO {
private DBAccessStatus dBAccessStatus;
@ManyToOne
private Basclt0900TO basclt0900to;
public Basclt0900TO getBasclt0900to() {
return basclt0900to;
}
public void setBasclt0900to(Basclt0900TO basclt0900to) {
this.basclt0900to = basclt0900to;
}
private char addrstatus;
@FullTextField(searchable=Searchable.YES, projectable = Projectable.YES, name="addrtype",analyzer = "nameAnalyzer")
private String addrtype = "";
@FullTextField(searchable=Searchable.YES, projectable = Projectable.YES, name="addrln1",analyzer = "nameAnalyzer")
private String addrln1 = "";
@FullTextField(searchable=Searchable.YES, projectable = Projectable.YES, name="addrln2",analyzer = "nameAnalyzer")
private String addrln2 = "";
@FullTextField(searchable=Searchable.YES, projectable = Projectable.YES, name="addrln3",analyzer = "nameAnalyzer")
private String addrln3 = "";
@FullTextField(searchable=Searchable.YES, projectable = Projectable.YES, name="addrln4",analyzer = "nameAnalyzer")
private String addrln4 = "";
@FullTextField(searchable=Searchable.YES, projectable = Projectable.YES, name="city",analyzer = "nameAnalyzer")
private String city = "";
@FullTextField(searchable=Searchable.YES, projectable = Projectable.YES, name="state")
private String state = "";
@FullTextField(searchable=Searchable.YES, projectable = Projectable.YES, name="zipcode",analyzer = "alphaNumericAnalyzer")
private String zipcode = "";
@FullTextField(searchable=Searchable.YES, projectable = Projectable.YES, name="country",analyzer = "addressAnalyzer")
private String country = "";
Basclt1400:
@Entity
@Indexed(index="master_client_index")
public class Basclt0900TO {
private DBAccessStatus dBAccessStatus;
@OneToMany(mappedBy = "basclt0900to")
@IndexedEmbedded
private Set<Basclt0300TO> basclt0300toList = new HashSet<>();
@OneToMany(mappedBy = "basclt0900to")
@IndexedEmbedded
private Set<Basclt0100TO> basclt0100toList = new HashSet<>();