Notice
Recent Posts
Recent Comments
Link
«   2024/07   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
Tags
more
Archives
Today
Total
관리 메뉴

WON.dev

BoardAttachMapper.xml 본문

SPRING/chapter04_MVC

BoardAttachMapper.xml

GAWON 2023. 7. 18. 09:26
<?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="org.joonzis.mapper.BoardAttachMapper">
	
	<insert id="insert" parameterType="org.joonzis.domain.BoardAttachVO">
		INSERT INTO tbl_attach(uuid, uploadPath, fileName, fileType, bno)
		VALUES(
			#{uuid},
			#{uploadPath},
			#{fileName},
			'',
			#{bno}
		)
	</insert>
	<delete id="delete">
	 	delete from tbl_attach where uuid=#{uuid}
	</delete>
	
	<select id="findByBno" resultType="org.joonzis.domain.BoardAttachVO">
			SELECT * FROM tbl_attach where bno=#{bno} 
	</select>
	<delete id="deleteAll">
		delete tbl_attach where bno=#{bno}
	</delete>
	
</mapper>

'SPRING > chapter04_MVC' 카테고리의 다른 글

MemberMapper.xml  (0) 2023.07.18
BoardMapper.xml  (0) 2023.07.18
SampleTxServiceImpl.java  (0) 2023.07.18
SampleTxService.java  (0) 2023.07.18
ReplyServiceImpl.java  (0) 2023.07.18