File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
package kr.itn.itnhub.contact;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface ContactMapper {
/** category가 null이면 전체를 구분→성명 오름차순으로 돌려준다. */
List<Contact> findAll(@Param("category") String category);
Contact findById(@Param("id") Long id);
int insert(Contact contact);
int update(Contact contact);
/** FK는 on delete set null이므로, 이 담당자를 가리키던 기관의 배정은 자동으로 해제된다. */
int delete(@Param("id") Long id);
}