package org.itevents.mapper;

import org.apache.ibatis.annotations.*;
import org.itevents.model.Currency;
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);

    @Insert("INSERT INTO technologies(id, name) VALUES(#{id}, #{name})")
    Currency addCurrency(TechTag techTag);

    @Update("UPDATE technologies SET id=#{id}, name=#{name} WHERE id =#{id}")
    void updateCurrency(TechTag techTag);

    @Delete("DELETE FROM technologies WHERE id =#{id}")
    void removeCurrency(int id);

}

@@ -524,28 +524,26 @@
     
-Currency addCurrency
+TechTag addTechTag
 (Tec
@@ -651,24 +651,23 @@
 d update
-Currency
+TechTag
 (TechTag
@@ -749,24 +749,23 @@
 d remove
-Currency
+TechTag
 (int id)

fix TechTagMapper