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

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.eactive.eai.data.entity.onl.adapter.AdapterType;
import com.eactive.eai.data.entity.onl.adapter.QAdapterType;
import com.eactive.eai.data.jpa.AbstractDataService;

@Service
@Transactional
public class AdapterTypeService extends AbstractDataService<AdapterType, String, AdapterTypeRepository> {

	public Page<AdapterType> findAll(Pageable pageable, String searchAdptrCd) {
		QAdapterType qAdapterType = QAdapterType.adapterType;
		return repository.findAll(qAdapterType.adptrcd.containsIgnoreCase(searchAdptrCd), pageable);
	}

}
