fluentMapping.entity( CatalogItem.class )
.property( "item", ElementType.FIELD ).containedIn()
.property( "catalog", ElementType.FIELD ).indexEmbedded();
// 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();
}