Sign in
apache
/
grails-data-mapping
/
ecc608831967aee5f035b1bba28dee848aaa93e7
/
.
/
grails-data-hibernate5
/
examples
/
grails-multiple-datasources
/
grails-app
/
services
/
example
/
BookService.groovy
blob: ba0240855a7a442c05f946921d2877c99a1ed33c [
file
] [
log
] [
blame
]
package
example
import
grails
.
gorm
.
services
.
Service
import
grails
.
gorm
.
transactions
.
ReadOnly
@Service
(
Book
)
abstract
class
BookService
{
@ReadOnly
abstract
Book
findByTitle
(
String
title
)
@ReadOnly
List
<
Book
>
findAll
()
{
Book
.
getAll
()
}
}