com.tamnd.app.core.services.impl.AccountRoleServiceImpl.java Source code

Java tutorial

Introduction

Here is the source code for com.tamnd.app.core.services.impl.AccountRoleServiceImpl.java

Source

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.tamnd.app.core.services.impl;

import com.tamnd.app.core.entities.AccountRole;
import com.tamnd.app.core.repositories.AccountRoleRepo;
import com.tamnd.app.core.services.AccountRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 *
 * @author nguye_000
 */
@Service
@Transactional
public class AccountRoleServiceImpl implements AccountRoleService {
    @Autowired
    private AccountRoleRepo accountRoleRepo;

    @Override
    public AccountRole createAccountRole(AccountRole role) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public AccountRole findAccountRole(Integer id) {
        return accountRoleRepo.findAccountRole(id);
    }

    @Override
    public AccountRole findAccountRoleByName(String roleName) {
        return accountRoleRepo.findAccountRoleByName(roleName);
    }

}