Package org.hibernate.jpa.criteria.expression

Examples of org.hibernate.jpa.criteria.expression.ParameterExpressionImpl.render()


      // but checking for that condition could take long time on a lon value list
      final ParameterExpressionImpl parameterExpression = (ParameterExpressionImpl) exp;
      final SessionFactoryImplementor sfi = criteriaBuilder().getEntityManagerFactory().unwrap( SessionFactoryImplementor.class );
      final Type mappingType = sfi.getTypeResolver().heuristicType( parameterExpression.getParameterType().getName() );
      buffer.append( "cast(" )
          .append( parameterExpression.render( renderingContext ) )
          .append( " as " )
          .append( mappingType.getName() )
          .append( ")" );
    }
    else {
View Full Code Here


      // but checking for that condition could take long time on a lon value list
      final ParameterExpressionImpl parameterExpression = (ParameterExpressionImpl) exp;
      final SessionFactoryImplementor sfi = criteriaBuilder().getEntityManagerFactory().unwrap( SessionFactoryImplementor.class );
      final Type mappingType = sfi.getTypeResolver().heuristicType( parameterExpression.getParameterType().getName() );
      buffer.append( "cast(" )
          .append( parameterExpression.render( renderingContext ) )
          .append( " as " )
          .append( mappingType.getName() )
          .append( ")" );
    }
    else {
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.