package com.yeejoin.amos.maintenance.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.maintenance.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);
}
