Skip to content

molindo/spring-data-custom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-data-custom

Create fully customized spring-data repositories, allowing custom code to be used with spring-data-rest etc.

Usage

  1. Enable custom repositories (@EnableCustomRepositories)
  2. Annotate eligible entities (@Custom)
  3. Create a repository (extend CustomRepository<T, ID>)
  4. Add custom behavior:
  5. Let repository extend a new interface with the Custom suffix
  6. Create an implementation of the new interface with the Impl prefix
  7. Add one or more CRUD methods named findOne, save, findAll, delete (see DefaultCrudMethods)
  8. Add query methods annotated with @Query
  9. Export repository using spring-data-rest

Maven

<dependency>
  <groupId>at.molindo</groupId>
  <artifactId>spring-data-custom</artifactId>
  <version>0.0.1</version>
</dependency>

Build

Build Status

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages