Skip to content

Commit cf45fd0

Browse files
committed
Improvements to load @service classes
Update the check to resolve service name from the annotation to either null or empty.
1 parent 4ccc46d commit cf45fd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grails-datastore-gorm/src/main/groovy/org/grails/datastore/gorm/bootstrap/AbstractDatastoreInitializer.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ abstract class AbstractDatastoreInitializer implements ResourceLoaderAware{
311311
final Class<?> serviceClass = loadServiceClass(clazz)
312312
final grails.gorm.services.Service ann = clazz.getAnnotation(grails.gorm.services.Service)
313313
String serviceName = ann?.name()
314-
if (serviceName == null) {
314+
if (!serviceName) {
315315
serviceName = Introspector.decapitalize(serviceClass.simpleName)
316316
}
317317
if (secondaryDatastore) {

0 commit comments

Comments
 (0)