package com.eactive.eai.rms.data.entity.onl.layout;

import java.util.List;

import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import com.eactive.eai.data.entity.onl.transformer.layout.LayoutItemEntity;
import com.eactive.eai.data.entity.onl.transformer.layout.LayoutItemEntityId;
import com.eactive.eai.data.jpa.BaseRepository;

public interface LayoutItemEMSRepository extends BaseRepository<LayoutItemEntity, LayoutItemEntityId> {

	@Modifying
	@Query("DELETE FROM LayoutItemEntity l WHERE l.id.loutname = :loutname")
	int deleteByLoutname(@Param("loutname") String loutname);

	List<LayoutItemEntity> findByIdLoutname(String loutname);

	List<LayoutItemEntity> findByIdLoutnameOrderByIdLoutitemserno(String loutname);
}
