Skip to content

Commit

Permalink
grails#13840 - Add back @entity for GORM Inheritance
Browse files Browse the repository at this point in the history
  • Loading branch information
jdaugherty committed Dec 10, 2024
1 parent c356409 commit ddad54a
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 190 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 ddad54a

Please sign in to comment.