Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit a9fa746

Browse files
committed
restore domain inheritance tests
1 parent 6c6688f commit a9fa746

File tree

8 files changed

+8
-16
lines changed

8 files changed

+8
-16
lines changed

examples/grails3-hibernate5/grails-app/domain/functional/tests/Employee.groovy

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package functional.tests
22

3-
// TODO domain inheritance
4-
class Employee /*extends Person*/ {
3+
class Employee extends Person {
54

65
static belongsTo = [
76
business: Business

grails-datastore-gorm-hibernate5/src/test/groovy/grails/gorm/tests/SubclassMultipleListCollectionSpec.groovy

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ class Iteration {
4747
// static mappedBy = [products: 'iteration', otherProducts: 'none']
4848
}
4949

50-
// @Entity
51-
// https://issues.apache.org/jira/browse/GROOVY-5106 - The interface GormEntity cannot be implemented more than once with different arguments: org.grails.datastore.gorm.GormEntity<grails.gorm.tests.XXX> and org.grails.datastore.gorm.GormEntity<grails.gorm.tests.XXX>
50+
@Entity
5251
class Product extends SuperProduct {
5352

5453
static belongsTo = [iteration: Iteration]

grails-datastore-gorm-hibernate5/src/test/groovy/grails/gorm/tests/TablePerSubClassAndEmbeddedSpec.groovy

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ class Company {
7373
tablePerSubclass true
7474
}
7575
}
76-
// @Entity
77-
// https://issues.apache.org/jira/browse/GROOVY-5106 - The interface GormEntity cannot be implemented more than once with different arguments: org.grails.datastore.gorm.GormEntity<grails.gorm.tests.XXX> and org.grails.datastore.gorm.GormEntity<grails.gorm.tests.XXX>
76+
@Entity
7877
class Vendor extends Company {
7978

8079
static constraints = {

grails-datastore-gorm-hibernate5/src/test/groovy/grails/gorm/tests/inheritance/SubclassToOneProxySpec.groovy

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ class SubclassToOneProxySpec extends GormDatastoreSpec {
2727
class SuperclassProxy {
2828
}
2929

30-
// @Entity
31-
// https://issues.apache.org/jira/browse/GROOVY-5106 - The interface GormEntity cannot be implemented more than once with different arguments: org.grails.datastore.gorm.GormEntity<grails.gorm.tests.XXX> and org.grails.datastore.gorm.GormEntity<grails.gorm.tests.XXX>
30+
@Entity
3231
class SubclassProxy extends SuperclassProxy {
3332
}
3433

grails-datastore-gorm-hibernate5/src/test/groovy/grails/gorm/tests/inheritance/TablePerConcreteClassAndDateCreatedSpec.groovy

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ abstract class Vehicle {
5151
}
5252
}
5353

54-
// @Entity
55-
// https://issues.apache.org/jira/browse/GROOVY-5106 - The interface GormEntity cannot be implemented more than once with different arguments: org.grails.datastore.gorm.GormEntity<grails.gorm.tests.XXX> and org.grails.datastore.gorm.GormEntity<grails.gorm.tests.XXX>
54+
@Entity
5655
class Spaceship extends Vehicle {
5756
static mapping = {
5857
dynamicUpdate true

grails-datastore-gorm-hibernate5/src/test/groovy/grails/gorm/tests/validation/CascadeValidationSpec.groovy

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ abstract class Person {
5050

5151
}
5252

53-
// @Entity
54-
// https://issues.apache.org/jira/browse/GROOVY-5106 - The interface GormEntity cannot be implemented more than once with different arguments: org.grails.datastore.gorm.GormEntity<grails.gorm.tests.XXX> and org.grails.datastore.gorm.GormEntity<grails.gorm.tests.XXX>
53+
@Entity
5554
class Employee extends Person {
5655

5756
static belongsTo = [

grails-datastore-gorm-hibernate5/src/test/groovy/grails/gorm/tests/validation/UniqueInheritanceSpec.groovy

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ class Item {
7070
Product product
7171
}
7272

73-
// @Entity
74-
// https://issues.apache.org/jira/browse/GROOVY-5106 - The interface GormEntity cannot be implemented more than once with different arguments: org.grails.datastore.gorm.GormEntity<grails.gorm.tests.XXX> and org.grails.datastore.gorm.GormEntity<grails.gorm.tests.XXX>
73+
@Entity
7574
class ConcreteProduct extends Product {
7675

7776
}

grails-plugin/src/test/groovy/grails/test/mixin/hibernate/HibernateSpecSpec.groovy

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ class Person {
6060
phone nullable: true
6161
}
6262
}
63-
// @Entity
64-
// https://issues.apache.org/jira/browse/GROOVY-5106 - The interface GormEntity cannot be implemented more than once with different arguments: org.grails.datastore.gorm.GormEntity<grails.gorm.tests.XXX> and org.grails.datastore.gorm.GormEntity<grails.gorm.tests.XXX>
63+
@Entity
6564
class Player extends Person {
6665
String sport
6766
String height

0 commit comments

Comments
 (0)