Best code examples for Hibernate ORM NativeSQLQueryRootReturn class (org.hibernate.engine.query.spi.sql.NativeSQLQueryRootReturn)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM NativeSQLQueryRootReturn class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Hibernate ORM NativeSQLQueryRootReturn examples from Open Source projects
This code example shows how to use the following methods:
This code example shows how to use the following methods:
		LockMode lockMode = getLockMode( returnElem.attributeValue( "lock-mode" ) ); 
 
		PersistentClass pc = mappings.getClass( entityName ); 
		java.util.Map propertyResults = bindPropertyResults(alias, returnElem, pc, mappings ); 
 
		return new NativeSQLQueryRootReturn( 
				alias, 
				entityName, 
				propertyResults, 
				lockMode 
			); 
	} 
 
	private static NativeSQLQueryJoinReturn bindReturnJoin(Element returnElem, Mappings mappings) { 
		String alias = returnElem.attributeValue( "alias" ); 
		String roleAttribute = returnElem.attributeValue( "property" ); 
		LockMode lockMode = getLockMode( returnElem.attributeValue( "lock-mode" ) ); 
		int dot = roleAttribute.lastIndexOf( '.' ); 
		if ( dot == -1 ) { 
			throw new MappingException( 
Full Snippet Info
4
CodeRank