Skip to content

Commit 5bcf9ce

Browse files
committed
remove comments
1 parent 8f1a819 commit 5bcf9ce

File tree

2 files changed

+27
-25
lines changed

2 files changed

+27
-25
lines changed

grails-datastore-gorm-rx/src/test/groovy/org/grails/gorm/rx/services/implementers/ObservableServiceTransformSpec.groovy

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff 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+
}

grails-datastore-gorm/src/test/groovy/grails/gorm/services/MethodValidationTransformSpec.groovy

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package grails.gorm.services
22

3+
import grails.gorm.annotation.Entity
4+
import jakarta.validation.constraints.NotNull
35
import org.grails.datastore.gorm.validation.jakarta.services.ValidatedService
46
import org.grails.datastore.mapping.validation.ValidationException
57
import 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+
}

0 commit comments

Comments
 (0)