30
30
31
31
import javax .sql .DataSource ;
32
32
33
- import org .hibernate .dialect .MySQL8Dialect ;
33
+ import org .hibernate .dialect .MySQLDialect ;
34
34
import org .junit .jupiter .api .Test ;
35
35
import org .junit .jupiter .api .extension .ExtendWith ;
36
36
import org .springframework .beans .factory .annotation .Autowired ;
@@ -149,8 +149,7 @@ void testEntityListFromNamedProcedure() {
149
149
resultClasses = Employee .class )
150
150
public static class Employee {
151
151
152
- @ Id
153
- @ GeneratedValue //
152
+ @ Id @ GeneratedValue //
154
153
private Integer id ;
155
154
private String name ;
156
155
@@ -181,10 +180,12 @@ public void setName(String name) {
181
180
@ Override
182
181
public boolean equals (Object o ) {
183
182
184
- if (this == o )
183
+ if (this == o ) {
185
184
return true ;
186
- if (o == null || getClass () != o .getClass ())
185
+ }
186
+ if (o == null || getClass () != o .getClass ()) {
187
187
return false ;
188
+ }
188
189
Employee employee = (Employee ) o ;
189
190
return Objects .equals (id , employee .id ) && Objects .equals (name , employee .name );
190
191
}
@@ -194,6 +195,7 @@ public int hashCode() {
194
195
return Objects .hash (id , name );
195
196
}
196
197
198
+ @ Override
197
199
public String toString () {
198
200
return "MySqlStoredProcedureIntegrationTests.Employee(id=" + this .getId () + ", name=" + this .getName () + ")" ;
199
201
}
@@ -265,7 +267,7 @@ public AbstractEntityManagerFactoryBean entityManagerFactory(DataSource dataSour
265
267
266
268
Properties properties = new Properties ();
267
269
properties .setProperty ("hibernate.hbm2ddl.auto" , "create" );
268
- properties .setProperty ("hibernate.dialect" , MySQL8Dialect .class .getCanonicalName ());
270
+ properties .setProperty ("hibernate.dialect" , MySQLDialect .class .getCanonicalName ());
269
271
factoryBean .setJpaProperties (properties );
270
272
271
273
return factoryBean ;
0 commit comments