com.sentinel.persistence.repository.PermissionRepository.java Source code

Java tutorial

Introduction

Here is the source code for com.sentinel.persistence.repository.PermissionRepository.java

Source

/**
 *  * Copyright (c) 2016 :;;. 
 * All rights reserved. 
 * 
 *Licensed under the Beer License
    
 */
package com.sentinel.persistence.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.transaction.annotation.Transactional;

import com.sentinel.persistence.models.Permission;

/**
 * @author Vipin Kumar
 * @created 28-Jan-2016
 * 
 *          TODO: Write a quick description of what the class is supposed to do.
 * 
 */
@Transactional(readOnly = true)
public interface PermissionRepository extends JpaRepository<Permission, Long> {
    Permission findByName(String name);
}