Hibernate ORM NativeQueryInterpreter - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM NativeQueryInterpreter class.

This code example shows how to use the following methods: getCustomQuery
		return builder.buildParameterMetadata( nativeQuery );
	} 
 
	@Override 
	public NativeSQLQueryPlan createQueryPlan(NativeSQLQuerySpecification specification, SessionFactoryImplementor sessionFactory) {
		CustomQuery customQuery = getCustomQuery( gridDialect, specification, sessionFactory );
		return new NativeNoSqlQueryPlan( specification.getQueryString(), customQuery );
	} 
 
	private <T extends Serializable> CustomQuery getCustomQuery(QueryableGridDialect<T> gridDialect, NativeSQLQuerySpecification specification, SessionFactoryImplementor sessionFactory) {
		T query = gridDialect.parseNativeQuery( specification.getQueryString() );
 
		@SuppressWarnings("unchecked") 
		Set<String> querySpaces = specification.getQuerySpaces();
 
		return new BackendCustomQuery<T>( 
				specification.getQueryString(),
				query,
				specification.getQueryReturns(),
				querySpaces,
Full Snippet Info
3
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE