package ervu.service.okopf;

import ervu.dao.okopf.OkopfDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author Artyom Hackimullin
 */
@Service
public class OkopfServiceImpl implements OkopfService {

  @Autowired
  private OkopfDao okopfDao;

  @Override
  @Transactional(readOnly = true)
  public String findTitleByLeg(String leg) {
    return okopfDao.fetchTitleByLeg(leg);
  }
}
