package com.yeejoin.amos.patrol.business.dao.repository;

import java.util.List;

import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import com.yeejoin.amos.patrol.dao.entity.PointPhoto;

@Repository("iPointPhotoDao")
public interface IPointPhotoDao extends BaseDao<PointPhoto, Long> {
	
	@Modifying
	@Transactional
	@Query(value = "delete from p_point_photo where point_id in (?1)", nativeQuery = true)
	void deleteByPointId(List<Long> pointIds);
}
