This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
packagehero;
importjava.util.List;
importorg.apache.ibatis.annotations.Delete;
importorg.apache.ibatis.annotations.Insert;
importorg.apache.ibatis.annotations.Param;
importorg.apache.ibatis.annotations.Select;
importorg.apache.ibatis.annotations.Update;
/**
* HeroMapper映射SQL接口
* 包含数据库增删改查
* save:保存新hero到数据库
* find:依照名字找到数据库中hero
* findAll:列出所有hero
* remove:删除数据库中特定名字的hero
* update:更新hero的值(未用到,未完成)
* @author markma
* @date 修改时间:2021年8月2日 上午11:47:18
*/
publicinterfaceHeroMapper
{
@Insert("insert into heros(ID,bloodValue,attackValue,name,weaponName,birthday,deathday,introduction) "