File tree Expand file tree Collapse file tree 2 files changed +27
-25
lines changed
grails-datastore-gorm-rx/src/test/groovy/org/grails/gorm/rx/services/implementers
grails-datastore-gorm/src/test/groovy/grails/gorm/services Expand file tree Collapse file tree 2 files changed +27
-25
lines changed Original file line number Diff line number Diff line change @@ -384,19 +384,19 @@ return Book.classLoader
384384 }
385385}
386386
387- // @Entity
388- // class Book {
389- // String title
390- // }
391- //
392- //
393- // @Service(Book)
394- // abstract class BookService {
395- // abstract Observable<Book> find(String title)
396- //
397- // Observable<Book> findOne(title) {
398- // RxServiceSupport.create {
399- // Book.findWhere(title:title)
400- // }
401- // }
402- // }
387+ @Entity
388+ class Book {
389+ String title
390+ }
391+
392+
393+ @Service (Book )
394+ abstract class BookService {
395+ abstract Observable<Book > find (String title )
396+
397+ Observable<Book > findOne (title ) {
398+ RxServiceSupport . create {
399+ Book . findWhere(title :title)
400+ }
401+ }
402+ }
Original file line number Diff line number Diff line change 11package grails.gorm.services
22
3+ import grails.gorm.annotation.Entity
4+ import jakarta.validation.constraints.NotNull
35import org.grails.datastore.gorm.validation.jakarta.services.ValidatedService
46import org.grails.datastore.mapping.validation.ValidationException
57import spock.lang.Specification
@@ -79,12 +81,12 @@ class Foo {
7981 }
8082}
8183
82- // @Service(Foo)
83- // interface MyService {
84- //
85- // Foo find(@NotNull String title)
86- // }
87- // @Entity
88- // class Foo {
89- // String title
90- // }
84+ @Service (Foo )
85+ interface MyService {
86+
87+ Foo find (@NotNull String title )
88+ }
89+ @Entity
90+ class Foo {
91+ String title
92+ }
You can’t perform that action at this time.
0 commit comments