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

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