package org.itevents.mapper;

import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.itevents.model.TechTag;

/**
 * Created by vaa25 on 17.07.2015.
 */
public interface TechTagMapper {

    @Results({
            @Result(property = "id", column = "id"),
            @Result(property = "name", column = "name"),
    })
    @Select("SELECT id, name FROM technologies WHERE id = #{id}")
    TechTag getTechTag(int id);
}

@@ -60,22 +60,17 @@
 tations.
-Result
+*
 ;%0Aimport
@@ -78,86 +78,31 @@
 org.
-apache.ibatis.annotations.Results;%0Aimport org.apache.ibatis.annotations.Select
+itevents.model.Currency
 ;%0Aim
@@ -410,16 +410,16 @@
 #%7Bid%7D%22)%0A
-
     Tech
@@ -442,10 +442,339 @@
 nt id);%0A
+%0A    @Insert(%22INSERT INTO technologies(id, name) VALUES(#%7Bid%7D, #%7Bname%7D)%22)%0A    Currency addCurrency(TechTag techTag);%0A%0A    @Update(%22UPDATE technologies SET id=#%7Bid%7D, name=#%7Bname%7D WHERE id =#%7Bid%7D%22)%0A    void updateCurrency(TechTag techTag);%0A%0A    @Delete(%22DELETE FROM technologies WHERE id =#%7Bid%7D%22)%0A    void removeCurrency(int id);%0A%0A
 %7D%0A

add CRUD to TechTagMapper