package com.education.vidyarthi.online.serviceimpl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import com.education.vidyarthi.online.Dao.LanguageDao;
import com.education.vidyarthi.online.model.Language;
import com.education.vidyarthi.online.service.LanguageService;
@Service("languageService")
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public class LanguageServiceImpl implements LanguageService{
@Autowired
private LanguageDao languageDao;
public List<Language> listLanguages() {
return languageDao.listLanguages();
}
public List<Language> getLanguageByLanguageId(Long languageId) {
return languageDao.getLanguageByLanguageId(languageId);
}
}
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import com.education.vidyarthi.online.Dao.LanguageDao;
import com.education.vidyarthi.online.model.Language;
import com.education.vidyarthi.online.service.LanguageService;
@Service("languageService")
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public class LanguageServiceImpl implements LanguageService{
@Autowired
private LanguageDao languageDao;
public List<Language> listLanguages() {
return languageDao.listLanguages();
}
public List<Language> getLanguageByLanguageId(Long languageId) {
return languageDao.getLanguageByLanguageId(languageId);
}
}
0 comments:
Post a Comment