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

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.eactive.eai.data.entity.onl.stdmessage.StandardMessageLayoutItem;
import com.eactive.eai.data.entity.onl.stdmessage.StandardMessageLayoutItemId;
import com.eactive.eai.data.jpa.AbstractDataService;

@Service
@Transactional
public class StandardMessageLayoutItemService extends
		AbstractDataService<StandardMessageLayoutItem, StandardMessageLayoutItemId, StandardMessageLayoutItemRepository> {

	public List<StandardMessageLayoutItem> findByIdLayoutName(String layoutName) {
		return repository.findByIdLayoutName(layoutName);
	}

	public void deleteAllByIdLayoutName(String layoutName) {
		repository.deleteAllByIdLayoutName(layoutName);
	}
	
}
