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

templates.ibatis.ftl Maven / Gradle / Ivy



  
  	
  	
  		<#list  model.cols as prop>
  			${prop.colName}<#if prop_has_next>,
  		
  	
  	
  	
  	
  	
  		delete from ${model.tableName} 
  		<#list model.cols as col>
  			<#if col.isPk>
  				
  			     ${col.colName} = ${r'#{'}${col.fieldName}${r'}'}
  			    
  			
  		
  	
  	
  		insert into ${model.tableName} 
  		(
  			<#list model.cols as col>
  				${col.colName}<#if col_has_next>,
  			
  		)
  		values
  		(
  			<#list model.cols as col>
  				${r'#{'}${col.fieldName}${r'}'}<#if col_has_next>,
  			
  		)
  	
  	
  		update ${model.tableName} 
  		
  			<#list model.cols as col>
  				<#if !col.isPk>
  					
  					${col.colName}=${r'#{'}${col.fieldName}${r'}'}<#if col_has_next>,
  					
  				
  			
  		
  		where
  		    <#list model.cols as col>
  		    	<#list model.pks as pk>
  		    		<#if col.colName = pk>${col.colName}=${r'#{'}${col.fieldName}${r'}'}<#if pk_has_next> and 
  		    	
  		    
  	
  	
  




© 2015 - 2025 Weber Informatics LLC | Privacy Policy