Examples of classBridge()


Examples of org.hibernate.search.cfg.EntityMapping.classBridge()

    SearchMapping fluentMapping = builder.fluentMapping();
    // mapping for Catalog
    EntityMapping catalogMapping = fluentMapping
        .entity( Catalog.class );
    if ( withClassBridgeOnCatalog ) {
      catalogMapping.classBridge( NoopClassBridge.class );
    }
    catalogMapping
        .property( "catalogItems", ElementType.FIELD ).containedIn();

    // mapping for CatalogItem
View Full Code Here

Examples of org.hibernate.search.cfg.IndexedMapping.classBridge()

    // mapping for Item
    IndexedMapping itemMapping = fluentMapping
        .entity( Item.class )
        .indexed();
    if ( withClassBridgeOnItem ) {
      itemMapping.classBridge( NoopClassBridge.class );
    }
    itemMapping.property( "catalogItems", ElementType.FIELD ).indexEmbedded().depth( depth );
    return builder.build();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.