soc.scar.service.ErrorTypeService.java Source code

Java tutorial

Introduction

Here is the source code for soc.scar.service.ErrorTypeService.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 soc.scar.service;

import java.io.Serializable;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import soc.scar.domain.ErrorType;
import soc.scar.repository.ErrorTypeRepository;

@Service("errorTypeService")
public class ErrorTypeService implements Serializable {
    @Autowired
    private ErrorTypeRepository ErrorTypeRepository;

    public List<ErrorType> findAllErrorType() {
        return ErrorTypeRepository.findAll();
    }
}