package com.bayer.burp.repository;

import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.rest.core.annotation.RestResource;
import org.springframework.security.access.prepost.PreAuthorize;

import com.bayer.burp.domain.Tag;

@PreAuthorize("hasRole('ROLE_USER')")
public interface TagRepository extends PagingAndSortingRepository<Tag, Long> {
	
	@RestResource(exported = false)
	Tag findByName(String name);
	
}
