Examples of HSearchTypeDescriptor


Examples of org.hibernate.hql.lucene.internal.ast.HSearchTypeDescriptor

  @Override
  public PathedPropertyReferenceSource normalizePropertyPathIntermediary(
      PropertyPath path, Tree propertyName) {

    HSearchTypeDescriptor sourceType = (HSearchTypeDescriptor) path.getLastNode().getType();

    if ( !sourceType.hasProperty( propertyName.getText() ) ) {
      throw log.getNoSuchPropertyException( sourceType.toString(), propertyName.getText() );
    }

    List<String> newPath = new LinkedList<String>( path.getNodeNamesWithoutAlias() );
    newPath.add( propertyName.getText() );

    PathedPropertyReference property = new PathedPropertyReference(
        propertyName.getText(),
        new HSearchEmbeddedEntityTypeDescriptor(
            sourceType.getIndexedEntityType(),
            newPath,
            propertyHelper
        ),
        false
    );
View Full Code Here

Examples of org.hibernate.hql.lucene.internal.ast.HSearchTypeDescriptor

  @Override
  public PathedPropertyReferenceSource normalizePropertyPathIntermediary(
      PropertyPath path, Tree propertyName) {

    HSearchTypeDescriptor sourceType = (HSearchTypeDescriptor) path.getLastNode().getType();

    if ( !sourceType.hasProperty( propertyName.getText() ) ) {
      throw log.getNoSuchPropertyException( sourceType.toString(), propertyName.getText() );
    }

    List<String> newPath = new LinkedList<String>( path.getNodeNamesWithoutAlias() );
    newPath.add( propertyName.getText() );

    PathedPropertyReference property = new PathedPropertyReference(
        propertyName.getText(),
        new HSearchEmbeddedEntityTypeDescriptor(
            sourceType.getIndexedEntityType(),
            newPath,
            propertyHelper
        ),
        false
    );
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.