Skip to content

Commit

Permalink
#13840 - Add back @entity for GORM Inheritance (#13915)
Browse files Browse the repository at this point in the history
* #13840 - Add back @entity for GORM Inheritance

* #13690 - feedback - add tests using is form of little boolean
  • Loading branch information
jdaugherty authored Dec 11, 2024
1 parent 7ee08f0 commit 20862d9
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 183 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1804,7 +1804,7 @@ class Widget {
}
}

// Since Groovy 4, parent domain classes cannot be annotated with @Entity (https://issues.apache.org/jira/browse/GROOVY-5106)
@Entity
@Sortable(includes = ['isBindable', 'isNotBindable'])
@SuppressWarnings('unused')
class ParentWidget implements Validateable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class EntityTransformTests extends Specification {
import grails.persistence.*
// Since Groovy 4 parent domain classes cannot be annotated with @Entity: https://issues.apache.org/jira/browse/GROOVY-5106
@Entity
class Personnel {
String lastName
String firstName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class InheritanceWithValidationTests extends Specification implements DataTest {
}
}

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

Expand Down
Loading

0 comments on commit 20862d9

Please sign in to comment.