All Downloads are FREE. Search and download functionalities are using the official Maven repository.

hbm.sql-query.hbm.ftl Maven / Gradle / Ivy

There is a newer version: 7.0.0.Beta1
Show newest version
<#list md.namedNativeQueryDefinitions as queryDef>
    
        flush-mode="${queryDef.flushMode.toString().toLowerCase()}"

<#if queryDef.isCacheable()>
	    cacheable="${queryDef.isCacheable()?string}"

<#if queryDef.cacheRegion?exists>
	    cache-region="${queryDef.cacheRegion}"

<#if queryDef.fetchSize?exists>
        fetch-size="${queryDef.fetchSize}"

<#if queryDef.timeout?exists>
        timeout="${queryDef.timeout?c}"
    
>
<#if queryDef.querySpaces?exists>
<#list queryDef.querySpaces as tableName>
	    


<#if queryDef.queryReturns?exists>
<#list queryDef.queryReturns as returnDef>
<#assign returnTag = c2h.getNamedSQLReturnTag(returnDef)>
	    <${returnTag}
             alias="${returnDef.alias}"
<#if c2h.isNamedSQLReturnRoot(returnDef)>
             class="${returnDef.returnEntityName}"
<#elseif c2h.isNamedSQLReturnRole(returnDef)>
             property="${returnDef.ownerAlias}.${returnDef.ownerProperty}"
<#elseif c2h.isNamedSQLReturnCollection(returnDef)>
             role="${returnDef.ownerEntityName}.${returnDef.ownerProperty}"

<#if returnDef.lockMode?exists>
             lock-mode="${returnDef.lockMode.toString().toLowerCase()}"
	    />
     
   
      
    
    




© 2015 - 2024 Weber Informatics LLC | Privacy Policy