package com.eactive.eai.custom.stderrorcode.loader;

import java.util.List;

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

import com.eactive.eai.common.util.DatetimeUtil;
import com.eactive.eai.data.entity.custom.stderrorcode.StdErrorCode;
import com.eactive.eai.data.jpa.AbstractDataService;

@Service
@Transactional
public class StdErrorCodeLoader extends AbstractDataService<StdErrorCode, String, StdErrorCodeLoaderRepository> {

	   @Transactional(readOnly = true)
	   public List<StdErrorCode> findAllByNow() {
	      return repository.selectAll(DatetimeUtil.getFormattedDate("yyyy-MM-dd"));
	   }

}