Skip to content

Commit 20862d9

Browse files
authored
#13840 - Add back @entity for GORM Inheritance (#13915)
* #13840 - Add back @entity for GORM Inheritance * #13690 - feedback - add tests using is form of little boolean
1 parent 7ee08f0 commit 20862d9

File tree

4 files changed

+60
-183
lines changed

4 files changed

+60
-183
lines changed

grails-test-suite-persistence/src/test/groovy/grails/web/databinding/GrailsWebDataBinderSpec.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1804,7 +1804,7 @@ class Widget {
18041804
}
18051805
}
18061806

1807-
// Since Groovy 4, parent domain classes cannot be annotated with @Entity (https://issues.apache.org/jira/browse/GROOVY-5106)
1807+
@Entity
18081808
@Sortable(includes = ['isBindable', 'isNotBindable'])
18091809
@SuppressWarnings('unused')
18101810
class ParentWidget implements Validateable {

grails-test-suite-uber/src/test/groovy/grails/persistence/EntityTransformTests.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class EntityTransformTests extends Specification {
138138
139139
import grails.persistence.*
140140
141-
// Since Groovy 4 parent domain classes cannot be annotated with @Entity: https://issues.apache.org/jira/browse/GROOVY-5106
141+
@Entity
142142
class Personnel {
143143
String lastName
144144
String firstName

grails-test-suite-uber/src/test/groovy/grails/test/mixin/InheritanceWithValidationTests.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class InheritanceWithValidationTests extends Specification implements DataTest {
2828
}
2929
}
3030

31-
// Since Groovy 4, parent domain classes cannot be annotated with @Entity (https://issues.apache.org/jira/browse/GROOVY-5106)
31+
@Entity
3232
@SuppressWarnings('unused')
3333
class AbstractCustomPropertyValue implements Validateable {
3434

0 commit comments

Comments
 (0)