Home » Tip Bank » Java
  • Comment on this Article
Language: Java
Expertise: Intermediate
Jul 16, 2019
  • facebook
  • twitter
  • in
  • Email

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


Watch

Selectively Expose CRUD Methods

When a repository interface should not be instantiated at runtime, it should be marked with @NoRepositoryBean annotation as follows:

@NoRepositoryBean
interface BaseRepository extends Repository {
  // CRUD methods that will not be exposed
}
Octavia Anghel
 
Submit a Tip
Browse "Java" Tips
Browse All Tips
codecademy.com
sitepoint.com