Skip to content

Instantly share code, notes, and snippets.

@recursivecodes
Last active April 17, 2019 19:51
Show Gist options
  • Select an option

  • Save recursivecodes/d42dc4224d8c3ab6d226d54f03c1ef2d to your computer and use it in GitHub Desktop.

Select an option

Save recursivecodes/d42dc4224d8c3ab6d226d54f03c1ef2d to your computer and use it in GitHub Desktop.
package codes.recursive.service
import codes.recursive.model.Person
import grails.gorm.services.Service
import grails.gorm.transactions.Transactional
import groovy.transform.CompileStatic
import javax.validation.constraints.NotNull
@CompileStatic
@Service(Person)
abstract class PersonService {
abstract int count()
abstract List<Person> findAll()
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