hi
i have the following domain model, 2 inheritance classes where the abstract rootclass has a unidirectional reference to the other object ContactNode[0…n] → [1]Company
what i want todo is to search with lucene query with restriction on the id of company like and for example name: contactOf_id:1 and lastname:SOME_NAME_PART
Environment:
- java 21
- Wildfly 31.0.1.Final / JakartaEE 10
- Lucene 9.8.0
- Hibernate ORM core version 6.4.4.Final / Hibernate Search version 7.0.0.Final
@MappedSuperclass
public abstract class AbstractEntity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
// public getter/setter for id
}
@Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "contact_node")
@Indexed
public abstract class ContactNodeEntity extends AbstractEntity {
// type E unidirectional
@IndexedEmbedded(includeEmbeddedObjectId = true) // (includeEmbeddedObjectId=true, includeDepth = 1, prefix = "contactOf")
@IndexingDependency(reindexOnUpdate = ReindexOnUpdate.SHALLOW)
@NotNull // a contact must ALWAYS be assigned to a company, dangling contacts not allowed
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "company_id_fk", foreignKey = @ForeignKey(name = "FK_company"), insertable = false, updatable = false)
private CompanyElem contactOf;
// public getter/setter for contactOf
}
@Table(name = "contact")
public class ContactEntity extends ContactNodeEntity {
}
@Entity
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "company")
@Indexed
public abstract class CompanyEntity extends AbstractEntity {
// no connect back to ContactNode
}
@Entity
@Table(name = "office", uniqueConstraints = @UniqueConstraint(columnNames = { "officeNumber" }))
public class OfficeElem extends CompanyEntity {
}
but on deplyoment on App Server i get this exception
07:19:25,304 WARN [org.hibernate.search.backend.lucene.impl.LuceneBackendFactory] (MSC service thread 1-7) HSEARCH000075: Missing value for configuration property 'hibernate.search.backend.lucene_version': using LATEST (currently '9.8.0'). Context: default backend
07:19:25,354 ERROR [org.hibernate.AssertionFailure] (MSC service thread 1-7) HHH000099: an assertion failure occurred (this may indicate a bug in Hibernate, but is more likely due to unsafe use of the session): org.hibernate.AssertionFailure: value involves formulas
07:19:25,364 ERROR [org.hibernate.AssertionFailure] (MSC service thread 1-7) HHH000099: an assertion failure occurred (this may indicate a bug in Hibernate, but is more likely due to unsafe use of the session): org.hibernate.AssertionFailure: value involves formulas
07:19:25,370 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000001: Failed to start service jboss.deployment.unit."ibona.ear".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."ibona.ear".WeldStartService: Failed to start service
at org.jboss.msc@1.5.2.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1609)
at org.jboss.msc@1.5.2.Final//org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1438)
at org.jboss.threads@2.4.0.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: org.jboss.weld.exceptions.DeploymentException: HSEARCH000520: Hibernate Search encountered failures during bootstrap. Failures:
Hibernate ORM mapping:
type 'ContactCompanyEntity':
path '.contactOf<no value extractors>':
failures:
- value involves formulas
type 'ContactCompanyEntity':
path '.contactOf<no value extractors>':
failures:
- value involves formulas
at org.jboss.weld.core@5.1.2.Final//org.jboss.weld.bootstrap.events.AbstractDeploymentContainerEvent.fire(AbstractDeploymentContainerEvent.java:38)
at org.jboss.weld.core@5.1.2.Final//org.jboss.weld.bootstrap.events.AfterDeploymentValidationImpl.fire(AfterDeploymentValidationImpl.java:28)
at org.jboss.weld.core@5.1.2.Final//org.jboss.weld.bootstrap.WeldStartup.validateBeans(WeldStartup.java:506)
at org.jboss.weld.core@5.1.2.Final//org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:94)
at org.jboss.as.weld@31.0.1.Final//org.jboss.as.weld.WeldStartService.start(WeldStartService.java:81)
at org.jboss.msc@1.5.2.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1617)
at org.jboss.msc@1.5.2.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1580)
... 6 more
Caused by: org.hibernate.search.util.common.SearchException: HSEARCH000520: Hibernate Search encountered failures during bootstrap. Failures:
Hibernate ORM mapping:
type 'ContactEntity':
path '.contactOf<no value extractors>':
failures:
- value involves formulas
type 'ContactEntity':
path '.contactOf<no value extractors>':
failures:
- value involves formulas
at org.hibernate.search.engine@7.0.0.Final//org.hibernate.search.engine.reporting.spi.RootFailureCollector.checkNoFailure(RootFailureCollector.java:67)
at org.hibernate.search.engine@7.0.0.Final//org.hibernate.search.engine.common.impl.SearchIntegrationBuilder.prepareBuild(SearchIntegrationBuilder.java:192)
at org.hibernate.search.mapper.orm@7.0.0.Final//org.hibernate.search.mapper.orm.bootstrap.impl.HibernateSearchPreIntegrationService$NotBooted.doBootFirstPhase(HibernateSearchPreIntegrationService.java:279)
at org.hibernate.search.mapper.orm@7.0.0.Final//org.hibernate.search.mapper.orm.bootstrap.impl.HibernateOrmIntegrationBooterImpl.bootNow(HibernateOrmIntegrationBooterImpl.java:179)
at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646)
at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
at java.base/java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2179)
at org.hibernate.search.mapper.orm@7.0.0.Final//org.hibernate.search.mapper.orm.bootstrap.impl.HibernateOrmIntegrationBooterImpl.lambda$orchestrateBootAndShutdown$1(HibernateOrmIntegrationBooterImpl.java:113)
at org.hibernate.search.mapper.orm@7.0.0.Final//org.hibernate.search.mapper.orm.bootstrap.impl.ExtendedBeanManagerSynchronizer.beanManagerInitialized(ExtendedBeanManagerSynchronizer.java:36)
at org.hibernate.jipijapa-hibernate6@31.0.1.Final//org.jboss.as.jpa.hibernate.HibernateExtendedBeanManager.beanManagerIsAvailableForUse(HibernateExtendedBeanManager.java:47)
at org.hibernate.jipijapa-hibernate6@31.0.1.Final//org.jboss.as.jpa.hibernate.HibernatePersistenceProviderAdaptor.markPersistenceUnitAvailable(HibernatePersistenceProviderAdaptor.java:214)
at org.jboss.as.jpa@31.0.1.Final//org.jboss.as.jpa.beanmanager.BeanManagerAfterDeploymentValidation$DeferredCall.markPersistenceUnitAvailable(BeanManagerAfterDeploymentValidation.java:64)
at org.jboss.as.jpa@31.0.1.Final//org.jboss.as.jpa.beanmanager.BeanManagerAfterDeploymentValidation.markPersistenceUnitAvailable(BeanManagerAfterDeploymentValidation.java:49)
at org.jboss.as.jpa@31.0.1.Final//org.jboss.as.jpa.beanmanager.BeanManagerAfterDeploymentValidation.afterDeploymentValidation(BeanManagerAfterDeploymentValidation.java:32)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.jboss.weld.core@5.1.2.Final//org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:99)
at org.jboss.weld.core@5.1.2.Final//org.jboss.weld.injection.MethodInvocationStrategy$SpecialParamPlusBeanManagerStrategy.invoke(MethodInvocationStrategy.java:199)
at org.jboss.weld.core@5.1.2.Final//org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:342)
at org.jboss.weld.core@5.1.2.Final//org.jboss.weld.event.ExtensionObserverMethodImpl.sendEvent(ExtensionObserverMethodImpl.java:136)
at org.jboss.weld.core@5.1.2.Final//org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:320)
at org.jboss.weld.core@5.1.2.Final//org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:298)
at jakarta.enterprise.api//jakarta.enterprise.inject.spi.ObserverMethod.notify(ObserverMethod.java:142)
at org.jboss.weld.core@5.1.2.Final//org.jboss.weld.util.Observers.notify(Observers.java:176)
at org.jboss.weld.core@5.1.2.Final//org.jboss.weld.event.ObserverNotifier.notifySyncObservers(ObserverNotifier.java:303)
at org.jboss.weld.core@5.1.2.Final//org.jboss.weld.event.ObserverNotifier.notify(ObserverNotifier.java:289)
at org.jboss.weld.core@5.1.2.Final//org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:184)
at org.jboss.weld.core@5.1.2.Final//org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:178)
at org.jboss.weld.core@5.1.2.Final//org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:53)
at org.jboss.weld.core@5.1.2.Final//org.jboss.weld.bootstrap.events.AbstractDeploymentContainerEvent.fire(AbstractDeploymentContainerEvent.java:35)
... 12 more
Suppressed: org.hibernate.AssertionFailure: value involves formulas
at org.hibernate@6.4.4.Final//org.hibernate.mapping.SimpleValue.getColumns(SimpleValue.java:279)
at org.hibernate.search.mapper.orm@7.0.0.Final//org.hibernate.search.mapper.orm.mapping.impl.HibernateOrmMappingPropertiesMetadataContributor.collectScale(HibernateOrmMappingPropertiesMetadataContributor.java:100)
at org.hibernate.search.mapper.orm@7.0.0.Final//org.hibernate.search.mapper.orm.mapping.impl.HibernateOrmMappingPropertiesMetadataContributor.collectMetadataFromHibernateOrmMappingProperty(HibernateOrmMappingPropertiesMetadataContributor.java:95)
at org.hibernate.search.mapper.orm@7.0.0.Final//org.hibernate.search.mapper.orm.mapping.impl.HibernateOrmMappingPropertiesMetadataContributor.lambda$contributeAdditionalMetadata$0(HibernateOrmMappingPropertiesMetadataContributor.java:54)
at org.hibernate.search.mapper.pojo@7.0.0.Final//org.hibernate.search.mapper.pojo.model.additionalmetadata.building.impl.PojoTypeAdditionalMetadataBuilder.lambda$build$1(PojoTypeAdditionalMetadataBuilder.java:103)
at org.hibernate.search.mapper.pojo@7.0.0.Final//org.hibernate.search.mapper.pojo.model.additionalmetadata.impl.PojoTypeAdditionalMetadata.lambda$getPropertyAdditionalMetadata$0(PojoTypeAdditionalMetadata.java:63)
at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1228)
at org.hibernate.search.mapper.pojo@7.0.0.Final//org.hibernate.search.mapper.pojo.model.additionalmetadata.impl.PojoTypeAdditionalMetadata.getPropertyAdditionalMetadata(PojoTypeAdditionalMetadata.java:58)
at org.hibernate.search.mapper.pojo@7.0.0.Final//org.hibernate.search.mapper.pojo.automaticindexing.building.impl.PojoAssociationPathInverter.findInverseSidePathFromInverseSideRecursive(PojoAssociationPathInverter.java:194)
at org.hibernate.search.mapper.pojo@7.0.0.Final//org.hibernate.search.mapper.pojo.automaticindexing.building.impl.PojoAssociationPathInverter.findInverseSidePathFromInverseSide(PojoAssociationPathInverter.java:174)
at org.hibernate.search.mapper.pojo@7.0.0.Final//org.hibernate.search.mapper.pojo.automaticindexing.building.impl.PojoAssociationPathInverter.invertPath(PojoAssociationPathInverter.java:65)
at org.hibernate.search.mapper.pojo@7.0.0.Final//org.hibernate.search.mapper.pojo.automaticindexing.building.impl.PojoIndexingDependencyCollectorTypeNode.collectDependency(PojoIndexingDependencyCollectorTypeNode.java:183)
at org.hibernate.search.mapper.pojo@7.0.0.Final//org.hibernate.search.mapper.pojo.automaticindexing.building.impl.PojoIndexingDependencyCollectorMonomorphicDirectValueNode.doCollectDependency(PojoIndexingDependencyCollectorMonomorphicDirectValueNode.java:93)
at org.hibernate.search.mapper.pojo@7.0.0.Final//org.hibernate.search.mapper.pojo.automaticindexing.building.impl.PojoIndexingDependencyCollectorMonomorphicDirectValueNode.collectDependency(PojoIndexingDependencyCollectorMonomorphicDirectValueNode.java:66)
at org.hibernate.search.mapper.pojo@7.0.0.Final//org.hibernate.search.mapper.pojo.processing.building.impl.PojoIndexingProcessorValueNodeBuilderDelegate.doBuild(PojoIndexingProcessorValueNodeBuilderDelegate.java:197)
at org.hibernate.search.mapper.pojo@7.0.0.Final//org.hibernate.search.mapper.pojo.processing.building.impl.PojoIndexingProcessorValueNodeBuilderDelegate.build(PojoIndexingProcessorValueNodeBuilderDelegate.java:169)
at org.hibernate.search.mapper.pojo@7.0.0.Final//org.hibernate.search.mapper.pojo.processing.building.impl.PojoIndexingProcessorPropertyNodeBuilder.doBuild(PojoIndexingProcessorPropertyNodeBuilder.java:178)
at org.hibernate.search.mapper.pojo@7.0.0.Final//org.hibernate.search.mapper.pojo.processing.building.impl.PojoIndexingProcessorPropertyNodeBuilder.build(PojoIndexingProcessorPropertyNodeBuilder.java:156)
at org.hibernate.search.mapper.pojo@7.0.0.Final//org.hibernate.search.mapper.pojo.processing.building.impl.AbstractPojoIndexingProcessorTypeNodeBuilder.lambda$doBuild$0(AbstractPojoIndexingProcessorTypeNodeBuilder.java:127)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1939)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
at org.hibernate.search.mapper.pojo@7.0.0.Final//org.hibernate.search.mapper.pojo.processing.building.impl.AbstractPojoIndexingProcessorTypeNodeBuilder.doBuild(AbstractPojoIndexingProcessorTypeNodeBuilder.java:130)
at org.hibernate.search.mapper.pojo@7.0.0.Final//org.hibernate.search.mapper.pojo.processing.building.impl.AbstractPojoIndexingProcessorTypeNodeBuilder.build(AbstractPojoIndexingProcessorTypeNodeBuilder.java:97)
at org.hibernate.search.mapper.pojo@7.0.0.Final//org.hibernate.search.mapper.pojo.mapping.building.impl.PojoIndexedTypeManagerBuilder.preBuild(PojoIndexedTypeManagerBuilder.java:114)
at org.hibernate.search.mapper.pojo@7.0.0.Final//org.hibernate.search.mapper.pojo.mapping.building.impl.PojoMapper.prepareBuild(PojoMapper.java:275)
at org.hibernate.search.engine@7.0.0.Final//org.hibernate.search.engine.common.impl.SearchIntegrationBuilder$MappingBuildingState.partiallyBuildAndAddTo(SearchIntegrationBuilder.java:288)
at org.hibernate.search.engine@7.0.0.Final//org.hibernate.search.engine.common.impl.SearchIntegrationBuilder.prepareBuild(SearchIntegrationBuilder.java:189)
... 40 more
Suppressed: org.hibernate.AssertionFailure: value involves formulas
at org.hibernate@6.4.4.Final//org.hibernate.mapping.SimpleValue.getColumns(SimpleValue.java:279)
at org.hibernate.search.mapper.orm@7.0.0.Final//org.hibernate.search.mapper.orm.mapping.impl.HibernateOrmMappingPropertiesMetadataContributor.collectScale(HibernateOrmMappingPropertiesMetadataContributor.java:100)
at org.hibernate.search.mapper.orm@7.0.0.Final//org.hibernate.search.mapper.orm.mapping.impl.HibernateOrmMappingPropertiesMetadataContributor.collectMetadataFromHibernateOrmMappingProperty(HibernateOrmMappingPropertiesMetadataContributor.java:95)
at org.hibernate.search.mapper.orm@7.0.0.Final//org.hibernate.search.mapper.orm.mapping.impl.HibernateOrmMappingPropertiesMetadataContributor.lambda$contributeAdditionalMetadata$0(HibernateOrmMappingPropertiesMetadataContributor.java:54)
at org.hibernate.search.mapper.pojo@7.0.0.Final//org.hibernate.search.mapper.pojo.model.additionalmetadata.building.impl.PojoTypeAdditionalMetadataBuilder.lambda$build$1(PojoTypeAdditionalMetadataBuilder.java:103)
at org.hibernate.search.mapper.pojo@7.0.0.Final//org.hibernate.search.mapper.pojo.model.additionalmetadata.impl.PojoTypeAdditionalMetadata.lambda$getPropertyAdditionalMetadata$0(PojoTypeAdditionalMetadata.java:63)
at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1228)
at org.hibernate.search.mapper.pojo@7.0.0.Final//org.hibernate.search.mapper.pojo.model.additionalmetadata.impl.PojoTypeAdditionalMetadata.getPropertyAdditionalMetadata(PojoTypeAdditionalMetadata.java:58)
at org.hibernate.search.mapper.pojo@7.0.0.Final//org.hibernate.search.mapper.pojo.automaticindexing.building.impl.PojoAssociationPathInverter.findInverseSidePathFromInverseSideRecursive(PojoAssociationPathInverter.java:194)
at org.hibernate.search.mapper.pojo@7.0.0.Final//org.hibernate.search.mapper.pojo.automaticindexing.building.impl.PojoAssociationPathInverter.findInverseSidePathFromInverseSide(PojoAssociationPathInverter.java:174)
at org.hibernate.search.mapper.pojo@7.0.0.Final//org.hibernate.search.mapper.pojo.automaticindexing.building.impl.PojoAssociationPathInverter.invertPath(PojoAssociationPathInverter.java:65)
at org.hibernate.search.mapper.pojo@7.0.0.Final//org.hibernate.search.mapper.pojo.automaticindexing.building.impl.PojoIndexingDependencyCollectorTypeNode.collectDependency(PojoIndexingDependencyCollectorTypeNode.java:183)
at org.hibernate.search.mapper.pojo@7.0.0.Final//org.hibernate.search.mapper.pojo.automaticindexing.building.impl.PojoIndexingDependencyCollectorMonomorphicDirectValueNode.doCollectDependency(PojoIndexingDependencyCollectorMonomorphicDirectValueNode.java:93)
at org.hibernate.search.mapper.pojo@7.0.0.Final//org.hibernate.search.mapper.pojo.automaticindexing.building.impl.PojoIndexingDependencyCollectorMonomorphicDirectValueNode.collectDependency(PojoIndexingDependencyCollectorMonomorphicDirectValueNode.java:66)
at org.hibernate.search.mapper.pojo@7.0.0.Final//org.hibernate.search.mapper.pojo.processing.building.impl.PojoIndexingProcessorValueNodeBuilderDelegate.doBuild(PojoIndexingProcessorValueNodeBuilderDelegate.java:197)
at org.hibernate.search.mapper.pojo@7.0.0.Final//org.hibernate.search.mapper.pojo.processing.building.impl.PojoIndexingProcessorValueNodeBuilderDelegate.build(PojoIndexingProcessorValueNodeBuilderDelegate.java:169)
at org.hibernate.search.mapper.pojo@7.0.0.Final//org.hibernate.search.mapper.pojo.processing.building.impl.PojoIndexingProcessorPropertyNodeBuilder.doBuild(PojoIndexingProcessorPropertyNodeBuilder.java:178)
at org.hibernate.search.mapper.pojo@7.0.0.Final//org.hibernate.search.mapper.pojo.processing.building.impl.PojoIndexingProcessorPropertyNodeBuilder.build(PojoIndexingProcessorPropertyNodeBuilder.java:156)
at org.hibernate.search.mapper.pojo@7.0.0.Final//org.hibernate.search.mapper.pojo.processing.building.impl.AbstractPojoIndexingProcessorTypeNodeBuilder.lambda$doBuild$0(AbstractPojoIndexingProcessorTypeNodeBuilder.java:127)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1939)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
at org.hibernate.search.mapper.pojo@7.0.0.Final//org.hibernate.search.mapper.pojo.processing.building.impl.AbstractPojoIndexingProcessorTypeNodeBuilder.doBuild(AbstractPojoIndexingProcessorTypeNodeBuilder.java:130)
at org.hibernate.search.mapper.pojo@7.0.0.Final//org.hibernate.search.mapper.pojo.processing.building.impl.AbstractPojoIndexingProcessorTypeNodeBuilder.build(AbstractPojoIndexingProcessorTypeNodeBuilder.java:97)
at org.hibernate.search.mapper.pojo@7.0.0.Final//org.hibernate.search.mapper.pojo.mapping.building.impl.PojoIndexedTypeManagerBuilder.preBuild(PojoIndexedTypeManagerBuilder.java:114)
at org.hibernate.search.mapper.pojo@7.0.0.Final//org.hibernate.search.mapper.pojo.mapping.building.impl.PojoMapper.prepareBuild(PojoMapper.java:275)
at org.hibernate.search.engine@7.0.0.Final//org.hibernate.search.engine.common.impl.SearchIntegrationBuilder$MappingBuildingState.partiallyBuildAndAddTo(SearchIntegrationBuilder.java:288)
at org.hibernate.search.engine@7.0.0.Final//org.hibernate.search.engine.common.impl.SearchIntegrationBuilder.prepareBuild(SearchIntegrationBuilder.java:189)
... 40 more
07:19:25,386 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "ibona.ear")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"ibona.ear\".WeldStartService" => "Failed to start service
Caused by: org.jboss.weld.exceptions.DeploymentException: HSEARCH000520: Hibernate Search encountered failures during bootstrap. Failures:
Hibernate ORM mapping:
type 'ContactEntity':
path '.contactOf<no value extractors>':
failures:
- value involves formulas
type 'ContactCompanyEntity':
path '.contactOf<no value extractors>':
failures:
- value involves formulas
Caused by: org.hibernate.search.util.common.SearchException: HSEARCH000520: Hibernate Search encountered failures during bootstrap. Failures:
Hibernate ORM mapping:
type 'ContactEntity':
path '.contactOf<no value extractors>':
failures:
- value involves formulas
type 'ContactCompanyEntity':
path '.contactOf<no value extractors>':
failures:
- value involves formulas"}}
07:19:25,387 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "test.ear")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"test.ear\".WeldStartService" => "Failed to start service
Caused by: org.jboss.weld.exceptions.DeploymentException: HSEARCH000520: Hibernate Search encountered failures during bootstrap. Failures:
Hibernate ORM mapping:
type 'ContactEntity':
path '.contactOf<no value extractors>':
failures:
- value involves formulas
type 'ContactCompanyEntity':
path '.contactOf<no value extractors>':
failures:
- value involves formulas
Caused by: org.hibernate.search.util.common.SearchException: HSEARCH000520: Hibernate Search encountered failures during bootstrap. Failures:
Hibernate ORM mapping:
type 'ContactEntity':
path '.contactOf<no value extractors>':
failures:
- value involves formulas
type 'ContactCompanyEntity':
path '.contactOf<no value extractors>':
failures:
- value involves formulas"}}
07:19:25,387 ERROR [org.jboss.as.server] (management-handler-thread - 1) WFLYSRV0021: Deploy of deployment "ibona.ear" was rolled back with the following failure message:
{"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"test.ear\".WeldStartService" => "Failed to start service
Caused by: org.jboss.weld.exceptions.DeploymentException: HSEARCH000520: Hibernate Search encountered failures during bootstrap. Failures:
Hibernate ORM mapping:
type 'ContactEntity':
path '.contactOf<no value extractors>':
failures:
- value involves formulas
type 'ContactCompanyEntity':
path '.contactOf<no value extractors>':
failures:
- value involves formulas
Caused by: org.hibernate.search.util.common.SearchException: HSEARCH000520: Hibernate Search encountered failures during bootstrap. Failures:
Hibernate ORM mapping:
type 'ContactEntity':
path '.contactOf<no value extractors>':
failures:
- value involves formulas
type 'ContactCompanyEntity':
path '.contactOf<no value extractors>':
failures:
- value involves formulas"}}
previous it was annotated in 5.4 with @IndexedEmbedded(includeEmbeddedObjectId=true, includeDepth = 1, prefix = “contactOf”). and was working with contactOf_id:1 and lastname:test
if i remove the @IndexEmbedded everthing deployable / search with HQL / Criteria API possible
what i’m doing wrong?
br horst