Package org.hibernate.search.cfg

Examples of org.hibernate.search.cfg.EntityMapping


        .addAnnotatedClass( CatalogItem.class )
        .addAnnotatedClass( Consumer.class )
        .addAnnotatedClass( Item.class );
    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
    fluentMapping.entity( CatalogItem.class )
        .property( "item", ElementType.FIELD ).containedIn()
View Full Code Here

TOP

Related Classes of org.hibernate.search.cfg.EntityMapping

Copyright © 2018 www.massapicom. 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.