File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
grails-core/src/main/groovy/org/grails/core/artefact Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 1515 */
1616package org .grails .core .artefact ;
1717
18+ import grails .artefact .Artefact ;
1819import grails .core .*;
1920import grails .core .support .GrailsApplicationAware ;
2021import grails .persistence .Entity ;
3132import org .grails .validation .ConstraintEvalUtils ;
3233
3334import java .io .IOException ;
35+ import java .lang .annotation .Annotation ;
3436import java .lang .reflect .Modifier ;
3537import java .net .URL ;
3638import java .util .Map ;
@@ -152,6 +154,11 @@ private static boolean doIsDomainClassCheck(Class<?> clazz) {
152154 return true ;
153155 }
154156
157+ Artefact artefactAnn = clazz .getAnnotation (Artefact .class );
158+ if (artefactAnn != null && artefactAnn .value ().equals (DomainClassArtefactHandler .TYPE )) {
159+ return true ;
160+ }
161+
155162 Class <?> testClass = clazz ;
156163 while (testClass != null && !testClass .equals (GroovyObject .class ) && !testClass .equals (Object .class )) {
157164 try {
You can’t perform that action at this time.
0 commit comments