Skip to content

Instantly share code, notes, and snippets.

@recursivecodes
Created April 18, 2019 15:50
Show Gist options
  • Save recursivecodes/623d0463aaab077912e85689e1e08068 to your computer and use it in GitHub Desktop.
Save recursivecodes/623d0463aaab077912e85689e1e08068 to your computer and use it in GitHub Desktop.
package codes.recursive.gorm.atp.service
import codes.recursive.gorm.atp.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)
abstract Person delete(@NotNull Long id)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment