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( 
Full Snippet Info
4
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE