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 );
	} 
} 
4
CodeRank
Experience pair programming with AI  Get Codota for Java
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
		); 
	} 
} 
4
CodeRank
Experience pair programming with AI  Get Codota for Java