Sunday, August 16, 2015

lanuage service impl

1:28 AM

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);
    }

}

Written by

We are Creative Blogger Theme Wavers which provides user friendly, effective and easy to use themes. Each support has free and providing HD support screen casting.

0 comments:

Post a Comment

 

© 2013 Java Tutorials. All rights resevered. Designed by Templateism

Back To Top