Search in sources :

Example 1 with ObjectStructure

use of org.hibernate.search.engine.backend.types.ObjectStructure in project hibernate-search by hibernate.

the class PropertyBridgeBaseIT method objectField.

/**
 * Test that object field definitions are forwarded to the backend.
 */
@Test
@TestForIssue(jiraKey = "HSEARCH-3324")
public void objectField() {
    class Contained {
    }
    @Indexed(index = INDEX_NAME)
    class IndexedEntity {

        @DocumentId
        Integer id;

        Contained contained;
    }
    backendMock.expectSchema(INDEX_NAME, b -> b.objectField("stringFromBridge", b2 -> b2.field("value", String.class)).objectField("listFromBridge", b2 -> b2.objectStructure(ObjectStructure.NESTED).multiValued(true).field("value", Integer.class)));
    SearchMapping mapping = setupHelper.start().withConfiguration(b -> b.programmaticMapping().type(IndexedEntity.class).property("contained").binder(context -> {
        context.dependencies().useRootOnly();
        // Single-valued field
        IndexSchemaObjectField stringObjectField = context.indexSchemaElement().objectField("stringFromBridge");
        stringObjectField.toReference();
        stringObjectField.field("value", f -> f.asString()).toReference();
        // Multi-valued field
        IndexSchemaObjectField listObjectField = context.indexSchemaElement().objectField("listFromBridge", ObjectStructure.NESTED).multiValued();
        listObjectField.toReference();
        listObjectField.field("value", f -> f.asInteger()).toReference();
        context.bridge(new UnusedPropertyBridge());
    })).setup(IndexedEntity.class);
    backendMock.verifyExpectationsMet();
}
Also used : SearchException(org.hibernate.search.util.common.SearchException) CollectionElementExtractor(org.hibernate.search.mapper.pojo.extractor.builtin.impl.CollectionElementExtractor) PojoModelPath(org.hibernate.search.mapper.pojo.model.path.PojoModelPath) JavaBeanMappingSetupHelper(org.hibernate.search.integrationtest.mapper.pojo.testsupport.util.rule.JavaBeanMappingSetupHelper) DocumentId(org.hibernate.search.mapper.pojo.mapping.definition.annotation.DocumentId) CustomPropertyMappingAnnotationBaseIT(org.hibernate.search.integrationtest.mapper.pojo.mapping.annotation.processing.CustomPropertyMappingAnnotationBaseIT) PropertyBridgeWriteContext(org.hibernate.search.mapper.pojo.bridge.runtime.PropertyBridgeWriteContext) PropertyValue(org.hibernate.search.mapper.pojo.mapping.definition.annotation.PropertyValue) BuiltinContainerExtractors(org.hibernate.search.mapper.pojo.extractor.builtin.BuiltinContainerExtractors) ObjectStructure(org.hibernate.search.engine.backend.types.ObjectStructure) ArrayList(java.util.ArrayList) SearchMapping(org.hibernate.search.mapper.javabean.mapping.SearchMapping) Assertions.assertThatThrownBy(org.assertj.core.api.Assertions.assertThatThrownBy) ContainerExtractorPath(org.hibernate.search.mapper.pojo.extractor.mapping.programmatic.ContainerExtractorPath) PropertyBridge(org.hibernate.search.mapper.pojo.bridge.PropertyBridge) PropertyBinder(org.hibernate.search.mapper.pojo.bridge.mapping.programmatic.PropertyBinder) PropertyBinding(org.hibernate.search.mapper.pojo.mapping.definition.annotation.PropertyBinding) FailureReportUtils(org.hibernate.search.util.impl.integrationtest.common.reporting.FailureReportUtils) NamedPredicateProvider(org.hibernate.search.engine.search.predicate.factories.NamedPredicateProvider) DocumentElement(org.hibernate.search.engine.backend.document.DocumentElement) AssociationInverseSide(org.hibernate.search.mapper.pojo.mapping.definition.annotation.AssociationInverseSide) AssertionFailure(org.hibernate.search.util.common.AssertionFailure) MethodHandles(java.lang.invoke.MethodHandles) SearchSession(org.hibernate.search.mapper.javabean.session.SearchSession) PojoElementAccessor(org.hibernate.search.mapper.pojo.model.PojoElementAccessor) Test(org.junit.Test) IndexSchemaObjectField(org.hibernate.search.engine.backend.document.model.dsl.IndexSchemaObjectField) Indexed(org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed) IndexFieldReference(org.hibernate.search.engine.backend.document.IndexFieldReference) List(java.util.List) TestForIssue(org.hibernate.search.util.impl.test.annotation.TestForIssue) Rule(org.junit.Rule) GenericField(org.hibernate.search.mapper.pojo.mapping.definition.annotation.GenericField) PropertyBindingContext(org.hibernate.search.mapper.pojo.bridge.binding.PropertyBindingContext) BackendMock(org.hibernate.search.util.impl.integrationtest.common.rule.BackendMock) PropertyBinderRef(org.hibernate.search.mapper.pojo.bridge.mapping.annotation.PropertyBinderRef) ObjectPath(org.hibernate.search.mapper.pojo.mapping.definition.annotation.ObjectPath) IndexSchemaObjectField(org.hibernate.search.engine.backend.document.model.dsl.IndexSchemaObjectField) SearchMapping(org.hibernate.search.mapper.javabean.mapping.SearchMapping) Indexed(org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed) Test(org.junit.Test) TestForIssue(org.hibernate.search.util.impl.test.annotation.TestForIssue)

Example 2 with ObjectStructure

use of org.hibernate.search.engine.backend.types.ObjectStructure in project hibernate-search by hibernate.

the class IndexedEmbeddedBaseIT method structure.

/**
 * Check that the "structure" parameter is at least taken into account.
 * <p>
 * Details of how filtering handles all corner cases is tested in the engine (see this class' javadoc).
 */
@Test
public void structure() {
    class IndexedEmbeddedLevel1 {

        @GenericField
        String level1Property;

        public String getLevel1Property() {
            return level1Property;
        }
    }
    @Indexed(index = INDEX_NAME)
    class IndexedEntity {

        @DocumentId
        Integer id;

        @IndexedEmbedded(structure = ObjectStructure.NESTED)
        IndexedEmbeddedLevel1 level1;

        public IndexedEntity(int id, String level1Value) {
            this.id = id;
            this.level1 = new IndexedEmbeddedLevel1();
            this.level1.level1Property = level1Value;
        }
    }
    backendMock.expectSchema(INDEX_NAME, b -> b.objectField("level1", b2 -> b2.objectStructure(ObjectStructure.NESTED).field("level1Property", String.class)));
    SearchMapping mapping = setupHelper.start().withAnnotatedEntityTypes(IndexedEntity.class).withAnnotatedTypes(IndexedEmbeddedLevel1.class).setup();
    backendMock.verifyExpectationsMet();
    doTestEmbeddedRuntime(mapping, id -> new IndexedEntity(id, "level1Value"), document -> document.objectField("level1", b2 -> b2.field("level1Property", "level1Value")));
}
Also used : SearchException(org.hibernate.search.util.common.SearchException) Arrays(java.util.Arrays) StartupStubBridge(org.hibernate.search.integrationtest.mapper.pojo.testsupport.util.StartupStubBridge) Assertions.assertThat(org.assertj.core.api.Assertions.assertThat) DocumentId(org.hibernate.search.mapper.pojo.mapping.definition.annotation.DocumentId) PropertyValue(org.hibernate.search.mapper.pojo.mapping.definition.annotation.PropertyValue) SearchMapping(org.hibernate.search.mapper.javabean.mapping.SearchMapping) FailureReportUtils(org.hibernate.search.util.impl.integrationtest.common.reporting.FailureReportUtils) IdentifierBridgeRef(org.hibernate.search.mapper.pojo.bridge.mapping.annotation.IdentifierBridgeRef) AssociationInverseSide(org.hibernate.search.mapper.pojo.mapping.definition.annotation.AssociationInverseSide) MethodHandles(java.lang.invoke.MethodHandles) ProgrammaticMappingSmokeIT(org.hibernate.search.integrationtest.mapper.pojo.smoke.ProgrammaticMappingSmokeIT) List(java.util.List) TestForIssue(org.hibernate.search.util.impl.test.annotation.TestForIssue) GeoPointBridge(org.hibernate.search.mapper.pojo.bridge.builtin.spatial.impl.GeoPointBridge) Optional(java.util.Optional) AnnotationMappingSmokeIT(org.hibernate.search.integrationtest.mapper.pojo.smoke.AnnotationMappingSmokeIT) Projectable(org.hibernate.search.engine.backend.types.Projectable) IdentifierBinder(org.hibernate.search.mapper.pojo.bridge.mapping.programmatic.IdentifierBinder) CollectionHelper(org.hibernate.search.util.common.impl.CollectionHelper) LongitudeMarker(org.hibernate.search.mapper.pojo.bridge.builtin.spatial.impl.LongitudeMarker) PojoModelPath(org.hibernate.search.mapper.pojo.model.path.PojoModelPath) Searchable(org.hibernate.search.engine.backend.types.Searchable) JavaBeanMappingSetupHelper(org.hibernate.search.integrationtest.mapper.pojo.testsupport.util.rule.JavaBeanMappingSetupHelper) Param(org.hibernate.search.mapper.pojo.common.annotation.Param) LatitudeMarker(org.hibernate.search.mapper.pojo.bridge.builtin.spatial.impl.LatitudeMarker) Function(java.util.function.Function) ObjectStructure(org.hibernate.search.engine.backend.types.ObjectStructure) ArrayList(java.util.ArrayList) IdentifierBindingContext(org.hibernate.search.mapper.pojo.bridge.binding.IdentifierBindingContext) StubDocumentNode(org.hibernate.search.util.impl.integrationtest.common.stub.backend.document.StubDocumentNode) Assertions.assertThatThrownBy(org.assertj.core.api.Assertions.assertThatThrownBy) IdentifierBinderRef(org.hibernate.search.mapper.pojo.bridge.mapping.annotation.IdentifierBinderRef) TypeMappingStep(org.hibernate.search.mapper.pojo.mapping.definition.programmatic.TypeMappingStep) StaticCounters(org.hibernate.search.util.impl.test.rule.StaticCounters) SearchSession(org.hibernate.search.mapper.javabean.session.SearchSession) Test(org.junit.Test) IndexedEmbedded(org.hibernate.search.mapper.pojo.mapping.definition.annotation.IndexedEmbedded) Indexed(org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed) IdentifierBridge(org.hibernate.search.mapper.pojo.bridge.IdentifierBridge) Consumer(java.util.function.Consumer) Rule(org.junit.Rule) GenericField(org.hibernate.search.mapper.pojo.mapping.definition.annotation.GenericField) IdentifierBridgeFromDocumentIdentifierContext(org.hibernate.search.mapper.pojo.bridge.runtime.IdentifierBridgeFromDocumentIdentifierContext) IdentifierBridgeToDocumentIdentifierContext(org.hibernate.search.mapper.pojo.bridge.runtime.IdentifierBridgeToDocumentIdentifierContext) BackendMock(org.hibernate.search.util.impl.integrationtest.common.rule.BackendMock) Collections(java.util.Collections) ObjectPath(org.hibernate.search.mapper.pojo.mapping.definition.annotation.ObjectPath) Assert.assertEquals(org.junit.Assert.assertEquals) SearchMapping(org.hibernate.search.mapper.javabean.mapping.SearchMapping) Indexed(org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed) Test(org.junit.Test)

Example 3 with ObjectStructure

use of org.hibernate.search.engine.backend.types.ObjectStructure in project hibernate-search by hibernate.

the class TypeBridgeBaseIT method objectFieldTemplate.

/**
 * Test that object field template definitions are forwarded to the backend.
 */
@Test
@TestForIssue(jiraKey = "HSEARCH-3273")
public void objectFieldTemplate() {
    class Contained {
    }
    @Indexed(index = INDEX_NAME)
    class IndexedEntity {

        @DocumentId
        Integer id;

        @IndexedEmbedded
        Contained contained;
    }
    backendMock.expectSchema(INDEX_NAME, b -> b.objectField("contained", b2 -> b2.objectFieldTemplate("stringFromBridge", b3 -> b3.matchingPathGlob("*_string")).fieldTemplate("stringFromBridge_value", String.class, b3 -> b3.matchingPathGlob("*_string.value")).objectFieldTemplate("listFromBridge", b3 -> b3.objectStructure(ObjectStructure.NESTED).multiValued(true).matchingPathGlob("*_list")).fieldTemplate("listFromBridge_value", Integer.class, b3 -> b3.matchingPathGlob("*_list.value"))));
    SearchMapping mapping = setupHelper.start().withConfiguration(b -> b.programmaticMapping().type(Contained.class).binder((TypeBinder) context -> {
        context.dependencies().useRootOnly();
        context.indexSchemaElement().objectFieldTemplate("stringFromBridge").matchingPathGlob("*_string");
        context.indexSchemaElement().fieldTemplate("stringFromBridge_value", f -> f.asString()).matchingPathGlob("*_string.value");
        context.indexSchemaElement().objectFieldTemplate("listFromBridge", ObjectStructure.NESTED).matchingPathGlob("*_list").multiValued();
        context.indexSchemaElement().fieldTemplate("listFromBridge_value", f -> f.asInteger()).matchingPathGlob("*_list.value");
        context.bridge(new UnusedTypeBridge());
    })).setup(IndexedEntity.class);
    backendMock.verifyExpectationsMet();
}
Also used : SearchException(org.hibernate.search.util.common.SearchException) TypeBridgeWriteContext(org.hibernate.search.mapper.pojo.bridge.runtime.TypeBridgeWriteContext) TypeBindingContext(org.hibernate.search.mapper.pojo.bridge.binding.TypeBindingContext) JavaBeanMappingSetupHelper(org.hibernate.search.integrationtest.mapper.pojo.testsupport.util.rule.JavaBeanMappingSetupHelper) DocumentId(org.hibernate.search.mapper.pojo.mapping.definition.annotation.DocumentId) ObjectStructure(org.hibernate.search.engine.backend.types.ObjectStructure) SearchMapping(org.hibernate.search.mapper.javabean.mapping.SearchMapping) Assertions.assertThatThrownBy(org.assertj.core.api.Assertions.assertThatThrownBy) FailureReportUtils(org.hibernate.search.util.impl.integrationtest.common.reporting.FailureReportUtils) NamedPredicateProvider(org.hibernate.search.engine.search.predicate.factories.NamedPredicateProvider) DocumentElement(org.hibernate.search.engine.backend.document.DocumentElement) TypeBinderRef(org.hibernate.search.mapper.pojo.bridge.mapping.annotation.TypeBinderRef) AssertionFailure(org.hibernate.search.util.common.AssertionFailure) TypeBridge(org.hibernate.search.mapper.pojo.bridge.TypeBridge) CustomTypeMappingAnnotationBaseIT(org.hibernate.search.integrationtest.mapper.pojo.mapping.annotation.processing.CustomTypeMappingAnnotationBaseIT) MethodHandles(java.lang.invoke.MethodHandles) SearchSession(org.hibernate.search.mapper.javabean.session.SearchSession) PojoElementAccessor(org.hibernate.search.mapper.pojo.model.PojoElementAccessor) TypeBinder(org.hibernate.search.mapper.pojo.bridge.mapping.programmatic.TypeBinder) Test(org.junit.Test) IndexSchemaObjectField(org.hibernate.search.engine.backend.document.model.dsl.IndexSchemaObjectField) IndexedEmbedded(org.hibernate.search.mapper.pojo.mapping.definition.annotation.IndexedEmbedded) Indexed(org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed) IndexFieldReference(org.hibernate.search.engine.backend.document.IndexFieldReference) TestForIssue(org.hibernate.search.util.impl.test.annotation.TestForIssue) Rule(org.junit.Rule) GenericField(org.hibernate.search.mapper.pojo.mapping.definition.annotation.GenericField) TypeBinding(org.hibernate.search.mapper.pojo.mapping.definition.annotation.TypeBinding) BackendMock(org.hibernate.search.util.impl.integrationtest.common.rule.BackendMock) SearchMapping(org.hibernate.search.mapper.javabean.mapping.SearchMapping) Indexed(org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed) Test(org.junit.Test) TestForIssue(org.hibernate.search.util.impl.test.annotation.TestForIssue)

Example 4 with ObjectStructure

use of org.hibernate.search.engine.backend.types.ObjectStructure in project hibernate-search by hibernate.

the class TypeBridgeBaseIT method objectField.

/**
 * Test that object field definitions are forwarded to the backend.
 */
@Test
@TestForIssue(jiraKey = "HSEARCH-3324")
public void objectField() {
    class Contained {
    }
    @Indexed(index = INDEX_NAME)
    class IndexedEntity {

        @DocumentId
        Integer id;

        @IndexedEmbedded
        Contained contained;
    }
    backendMock.expectSchema(INDEX_NAME, b -> b.objectField("contained", b2 -> b2.objectField("stringFromBridge", b3 -> b3.field("value", String.class)).objectField("listFromBridge", b3 -> b3.objectStructure(ObjectStructure.NESTED).multiValued(true).field("value", Integer.class))));
    SearchMapping mapping = setupHelper.start().withConfiguration(b -> b.programmaticMapping().type(Contained.class).binder((TypeBinder) context -> {
        context.dependencies().useRootOnly();
        IndexSchemaObjectField stringObjectField = context.indexSchemaElement().objectField("stringFromBridge");
        stringObjectField.toReference();
        stringObjectField.field("value", f -> f.asString()).toReference();
        IndexSchemaObjectField listObjectField = context.indexSchemaElement().objectField("listFromBridge", ObjectStructure.NESTED).multiValued();
        listObjectField.toReference();
        listObjectField.field("value", f -> f.asInteger()).toReference();
        context.bridge(new UnusedTypeBridge());
    })).setup(IndexedEntity.class);
    backendMock.verifyExpectationsMet();
}
Also used : SearchException(org.hibernate.search.util.common.SearchException) TypeBridgeWriteContext(org.hibernate.search.mapper.pojo.bridge.runtime.TypeBridgeWriteContext) TypeBindingContext(org.hibernate.search.mapper.pojo.bridge.binding.TypeBindingContext) JavaBeanMappingSetupHelper(org.hibernate.search.integrationtest.mapper.pojo.testsupport.util.rule.JavaBeanMappingSetupHelper) DocumentId(org.hibernate.search.mapper.pojo.mapping.definition.annotation.DocumentId) ObjectStructure(org.hibernate.search.engine.backend.types.ObjectStructure) SearchMapping(org.hibernate.search.mapper.javabean.mapping.SearchMapping) Assertions.assertThatThrownBy(org.assertj.core.api.Assertions.assertThatThrownBy) FailureReportUtils(org.hibernate.search.util.impl.integrationtest.common.reporting.FailureReportUtils) NamedPredicateProvider(org.hibernate.search.engine.search.predicate.factories.NamedPredicateProvider) DocumentElement(org.hibernate.search.engine.backend.document.DocumentElement) TypeBinderRef(org.hibernate.search.mapper.pojo.bridge.mapping.annotation.TypeBinderRef) AssertionFailure(org.hibernate.search.util.common.AssertionFailure) TypeBridge(org.hibernate.search.mapper.pojo.bridge.TypeBridge) CustomTypeMappingAnnotationBaseIT(org.hibernate.search.integrationtest.mapper.pojo.mapping.annotation.processing.CustomTypeMappingAnnotationBaseIT) MethodHandles(java.lang.invoke.MethodHandles) SearchSession(org.hibernate.search.mapper.javabean.session.SearchSession) PojoElementAccessor(org.hibernate.search.mapper.pojo.model.PojoElementAccessor) TypeBinder(org.hibernate.search.mapper.pojo.bridge.mapping.programmatic.TypeBinder) Test(org.junit.Test) IndexSchemaObjectField(org.hibernate.search.engine.backend.document.model.dsl.IndexSchemaObjectField) IndexedEmbedded(org.hibernate.search.mapper.pojo.mapping.definition.annotation.IndexedEmbedded) Indexed(org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed) IndexFieldReference(org.hibernate.search.engine.backend.document.IndexFieldReference) TestForIssue(org.hibernate.search.util.impl.test.annotation.TestForIssue) Rule(org.junit.Rule) GenericField(org.hibernate.search.mapper.pojo.mapping.definition.annotation.GenericField) TypeBinding(org.hibernate.search.mapper.pojo.mapping.definition.annotation.TypeBinding) BackendMock(org.hibernate.search.util.impl.integrationtest.common.rule.BackendMock) IndexSchemaObjectField(org.hibernate.search.engine.backend.document.model.dsl.IndexSchemaObjectField) SearchMapping(org.hibernate.search.mapper.javabean.mapping.SearchMapping) Indexed(org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed) Test(org.junit.Test) TestForIssue(org.hibernate.search.util.impl.test.annotation.TestForIssue)

Example 5 with ObjectStructure

use of org.hibernate.search.engine.backend.types.ObjectStructure in project hibernate-search by hibernate.

the class PropertyBridgeBaseIT method objectFieldTemplate.

/**
 * Test that object field template definitions are forwarded to the backend.
 */
@Test
@TestForIssue(jiraKey = "HSEARCH-3273")
public void objectFieldTemplate() {
    class Contained {
    }
    @Indexed(index = INDEX_NAME)
    class IndexedEntity {

        @DocumentId
        Integer id;

        Contained contained;
    }
    backendMock.expectSchema(INDEX_NAME, b -> b.objectFieldTemplate("stringFromBridge", b2 -> b2.matchingPathGlob("*_string")).fieldTemplate("stringFromBridge_value", String.class, b2 -> b2.matchingPathGlob("*_string.value")).objectFieldTemplate("listFromBridge", b2 -> b2.objectStructure(ObjectStructure.NESTED).multiValued(true).matchingPathGlob("*_list")).fieldTemplate("listFromBridge_value", Integer.class, b2 -> b2.matchingPathGlob("*_list.value")));
    SearchMapping mapping = setupHelper.start().withConfiguration(b -> b.programmaticMapping().type(IndexedEntity.class).property("contained").binder(context -> {
        context.dependencies().useRootOnly();
        // Single-valued field
        context.indexSchemaElement().objectFieldTemplate("stringFromBridge").matchingPathGlob("*_string");
        context.indexSchemaElement().fieldTemplate("stringFromBridge_value", f -> f.asString()).matchingPathGlob("*_string.value");
        // Multi-valued field
        context.indexSchemaElement().objectFieldTemplate("listFromBridge", ObjectStructure.NESTED).matchingPathGlob("*_list").multiValued();
        context.indexSchemaElement().fieldTemplate("listFromBridge_value", f -> f.asInteger()).matchingPathGlob("*_list.value");
        context.bridge(new UnusedPropertyBridge());
    })).setup(IndexedEntity.class);
    backendMock.verifyExpectationsMet();
}
Also used : SearchException(org.hibernate.search.util.common.SearchException) CollectionElementExtractor(org.hibernate.search.mapper.pojo.extractor.builtin.impl.CollectionElementExtractor) PojoModelPath(org.hibernate.search.mapper.pojo.model.path.PojoModelPath) JavaBeanMappingSetupHelper(org.hibernate.search.integrationtest.mapper.pojo.testsupport.util.rule.JavaBeanMappingSetupHelper) DocumentId(org.hibernate.search.mapper.pojo.mapping.definition.annotation.DocumentId) CustomPropertyMappingAnnotationBaseIT(org.hibernate.search.integrationtest.mapper.pojo.mapping.annotation.processing.CustomPropertyMappingAnnotationBaseIT) PropertyBridgeWriteContext(org.hibernate.search.mapper.pojo.bridge.runtime.PropertyBridgeWriteContext) PropertyValue(org.hibernate.search.mapper.pojo.mapping.definition.annotation.PropertyValue) BuiltinContainerExtractors(org.hibernate.search.mapper.pojo.extractor.builtin.BuiltinContainerExtractors) ObjectStructure(org.hibernate.search.engine.backend.types.ObjectStructure) ArrayList(java.util.ArrayList) SearchMapping(org.hibernate.search.mapper.javabean.mapping.SearchMapping) Assertions.assertThatThrownBy(org.assertj.core.api.Assertions.assertThatThrownBy) ContainerExtractorPath(org.hibernate.search.mapper.pojo.extractor.mapping.programmatic.ContainerExtractorPath) PropertyBridge(org.hibernate.search.mapper.pojo.bridge.PropertyBridge) PropertyBinder(org.hibernate.search.mapper.pojo.bridge.mapping.programmatic.PropertyBinder) PropertyBinding(org.hibernate.search.mapper.pojo.mapping.definition.annotation.PropertyBinding) FailureReportUtils(org.hibernate.search.util.impl.integrationtest.common.reporting.FailureReportUtils) NamedPredicateProvider(org.hibernate.search.engine.search.predicate.factories.NamedPredicateProvider) DocumentElement(org.hibernate.search.engine.backend.document.DocumentElement) AssociationInverseSide(org.hibernate.search.mapper.pojo.mapping.definition.annotation.AssociationInverseSide) AssertionFailure(org.hibernate.search.util.common.AssertionFailure) MethodHandles(java.lang.invoke.MethodHandles) SearchSession(org.hibernate.search.mapper.javabean.session.SearchSession) PojoElementAccessor(org.hibernate.search.mapper.pojo.model.PojoElementAccessor) Test(org.junit.Test) IndexSchemaObjectField(org.hibernate.search.engine.backend.document.model.dsl.IndexSchemaObjectField) Indexed(org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed) IndexFieldReference(org.hibernate.search.engine.backend.document.IndexFieldReference) List(java.util.List) TestForIssue(org.hibernate.search.util.impl.test.annotation.TestForIssue) Rule(org.junit.Rule) GenericField(org.hibernate.search.mapper.pojo.mapping.definition.annotation.GenericField) PropertyBindingContext(org.hibernate.search.mapper.pojo.bridge.binding.PropertyBindingContext) BackendMock(org.hibernate.search.util.impl.integrationtest.common.rule.BackendMock) PropertyBinderRef(org.hibernate.search.mapper.pojo.bridge.mapping.annotation.PropertyBinderRef) ObjectPath(org.hibernate.search.mapper.pojo.mapping.definition.annotation.ObjectPath) SearchMapping(org.hibernate.search.mapper.javabean.mapping.SearchMapping) Indexed(org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed) Test(org.junit.Test) TestForIssue(org.hibernate.search.util.impl.test.annotation.TestForIssue)

Aggregations

ObjectStructure (org.hibernate.search.engine.backend.types.ObjectStructure)6 MethodHandles (java.lang.invoke.MethodHandles)5 Assertions.assertThatThrownBy (org.assertj.core.api.Assertions.assertThatThrownBy)5 JavaBeanMappingSetupHelper (org.hibernate.search.integrationtest.mapper.pojo.testsupport.util.rule.JavaBeanMappingSetupHelper)5 SearchMapping (org.hibernate.search.mapper.javabean.mapping.SearchMapping)5 SearchSession (org.hibernate.search.mapper.javabean.session.SearchSession)5 DocumentId (org.hibernate.search.mapper.pojo.mapping.definition.annotation.DocumentId)5 GenericField (org.hibernate.search.mapper.pojo.mapping.definition.annotation.GenericField)5 Indexed (org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed)5 SearchException (org.hibernate.search.util.common.SearchException)5 FailureReportUtils (org.hibernate.search.util.impl.integrationtest.common.reporting.FailureReportUtils)5 BackendMock (org.hibernate.search.util.impl.integrationtest.common.rule.BackendMock)5 TestForIssue (org.hibernate.search.util.impl.test.annotation.TestForIssue)5 Rule (org.junit.Rule)5 Test (org.junit.Test)5 DocumentElement (org.hibernate.search.engine.backend.document.DocumentElement)4 IndexFieldReference (org.hibernate.search.engine.backend.document.IndexFieldReference)4 IndexSchemaObjectField (org.hibernate.search.engine.backend.document.model.dsl.IndexSchemaObjectField)4 NamedPredicateProvider (org.hibernate.search.engine.search.predicate.factories.NamedPredicateProvider)4 PojoElementAccessor (org.hibernate.search.mapper.pojo.model.PojoElementAccessor)4