Hibernate ORM NativeSQLQuerySpecification - 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 NativeSQLQuerySpecification class.

This code example shows how to use the following methods:
		String blah = "blah";
		String select = "select blah from blah";
		NativeSQLQueryReturn[] queryReturns = new NativeSQLQueryScalarReturn[] {
				new NativeSQLQueryScalarReturn( blah, sessionFactory().getTypeResolver().basic( "int" ) )
		}; 
		return new NativeSQLQuerySpecification( select, queryReturns, null );
	} 
} 
Full Snippet Info
4
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: getQueryReturns, getQuerySpaces, getQueryString
		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,
				sessionFactory
		); 
	} 
} 
Full Snippet Info
4
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE