Skip to content

Commit 965c5f0

Browse files
committed
HHH-18693 Changed Hibernate Core tests to make metamodel classes generation possible
- static inner class MUST NOT be private - changed full upper case property names
1 parent d5a0c66 commit 965c5f0

33 files changed

+61
-61
lines changed

hibernate-core/src/test/java/org/hibernate/orm/test/annotations/CreationTimestampTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ protected Class<?>[] getAnnotatedClasses() {
3838
}
3939

4040
@Entity(name = "Event")
41-
private static class Event {
41+
static class Event {
4242

4343
@Id
4444
@GeneratedValue

hibernate-core/src/test/java/org/hibernate/orm/test/annotations/UpdateTimestampTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ protected Class<?>[] getAnnotatedClasses() {
3838
}
3939

4040
@Entity(name = "Event")
41-
private static class Event {
41+
static class Event {
4242

4343
@Id
4444
@GeneratedValue

hibernate-core/src/test/java/org/hibernate/orm/test/bootstrap/registry/classloading/HibernateCallbacksTestAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ protected List<String> getManagedClassNames() {
3434
}
3535

3636
@Entity(name = "booking")
37-
private static class Booking {
37+
static class Booking {
3838
@Id Long id;
3939
@Transient String legacyIdentifier;
4040

hibernate-core/src/test/java/org/hibernate/orm/test/bytecode/enhancement/association/InheritedAttributeAssociationTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public void test() {
4444
// --- //
4545

4646
@Entity
47-
private static class Author {
47+
static class Author {
4848

4949
@Id
5050
@GeneratedValue
@@ -60,7 +60,7 @@ private static class Author {
6060
@MappedSuperclass
6161
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
6262
@DiscriminatorColumn(name = "type", discriminatorType = DiscriminatorType.STRING)
63-
private static abstract class Item {
63+
static abstract class Item {
6464

6565
@Id
6666
@GeneratedValue
@@ -72,6 +72,6 @@ private static abstract class Item {
7272

7373
@Entity
7474
@DiscriminatorValue("child")
75-
private static class ChildItem extends Item {
75+
static class ChildItem extends Item {
7676
}
7777
}

hibernate-core/src/test/java/org/hibernate/orm/test/bytecode/enhancement/association/ManyToManyAssociationListTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public void testBidirectionalExisting() {
4141
// -- //
4242

4343
@Entity
44-
private static class Group {
44+
static class Group {
4545

4646
@Id
4747
Long id;
@@ -63,7 +63,7 @@ void resetUsers() {
6363
}
6464

6565
@Entity
66-
private static class User {
66+
static class User {
6767

6868
@Id
6969
Long id;

hibernate-core/src/test/java/org/hibernate/orm/test/bytecode/enhancement/association/ManyToManyAssociationTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public void test() {
6868
// -- //
6969

7070
@Entity
71-
private static class Group {
71+
static class Group {
7272

7373
@Id
7474
Long id;
@@ -90,7 +90,7 @@ void resetUsers() {
9090
}
9191

9292
@Entity
93-
private static class User {
93+
static class User {
9494

9595
@Id
9696
Long id;

hibernate-core/src/test/java/org/hibernate/orm/test/bytecode/enhancement/association/OneToManyAssociationTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public void test() {
6767
// --- //
6868

6969
@Entity
70-
private static class Customer {
70+
static class Customer {
7171

7272
@Id
7373
Long id;
@@ -97,7 +97,7 @@ void removeInventory(CustomerInventory inventory) {
9797
}
9898

9999
@Entity
100-
private static class CustomerInventory {
100+
static class CustomerInventory {
101101

102102
@Id
103103
Long id;

hibernate-core/src/test/java/org/hibernate/orm/test/bytecode/enhancement/association/OneToOneAssociationTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public void testSetNull() {
7171
// --- //
7272

7373
@Entity
74-
private static class Customer {
74+
static class Customer {
7575

7676
@Id
7777
Long id;
@@ -89,7 +89,7 @@ void setUser(User newUser) {
8989
}
9090

9191
@Entity
92-
private static class User {
92+
static class User {
9393

9494
@Id
9595
Long id;

hibernate-core/src/test/java/org/hibernate/orm/test/bytecode/enhancement/basic/BasicEnhancementTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public void basicExtendedEnhancementTest() {
124124
// --- //
125125

126126
@Entity
127-
private static class SimpleEntity {
127+
static class SimpleEntity {
128128

129129
Object anUnspecifiedObject;
130130

hibernate-core/src/test/java/org/hibernate/orm/test/bytecode/enhancement/basic/ExtendedAssociationManagementTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public void test() {
5353
// --- //
5454

5555
@Entity
56-
private static class Customer {
56+
static class Customer {
5757

5858
@Id
5959
Long id;
@@ -67,7 +67,7 @@ private static class Customer {
6767
}
6868

6969
@Entity
70-
private static class User {
70+
static class User {
7171

7272
@Id
7373
Long id;

0 commit comments

Comments
 (0)