bitcocom/gsm31

BoardMapper.xml

bitcocom opened this issue · 0 comments

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
  PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.gsm.dao.BoardMapper">
 
 <select id="getList" resultType="kr.gsm.entity.Board">
  select * from board order by idx desc     
 </select>    
 
 <insert id="boardInsert" parameterType="kr.gsm.entity.Board">
     insert into board(title,content,writer)
     values(#{title},#{content},#{writer})     
 </insert>
</mapper>