#foreach ($column in $columns) #end #if($table.tree) #end #if($table.sub) #foreach ($column in $subTable.columns) #end #end select#foreach($column in $columns) $column.columnName#if($foreach.count != $columns.size()),#end#end from ${tableName} insert into ${tableName} #foreach($column in $columns) #if($column.columnName != $pkColumn.columnName || !$pkColumn.increment) $column.columnName, #end #end #foreach($column in $columns) #if($column.columnName != $pkColumn.columnName || !$pkColumn.increment) #{$column.javaField}, #end #end update ${tableName} #foreach($column in $columns) #if($column.columnName != $pkColumn.columnName) $column.columnName = #{$column.javaField}, #end #end where ${pkColumn.columnName} = #{${pkColumn.javaField}} delete from ${tableName} where ${pkColumn.columnName} in #{${pkColumn.javaField}}