Created
April 17, 2019 20:41
-
-
Save recursivecodes/d80518c1699d3194548c43a720597ee9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package codes.recursive.service | |
| import codes.recursive.model.Person | |
| import grails.gorm.services.Service | |
| import groovy.transform.CompileStatic | |
| import javax.validation.constraints.NotNull | |
| @CompileStatic | |
| @Service(Person) | |
| abstract class PersonService { | |
| abstract int count() | |
| abstract List<Person> findAll() | |
| abstract List<Person> findAll(Map args) | |
| abstract Person find(@NotNull Long id) | |
| abstract Person save(Person person) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment