3030
3131import javax .sql .DataSource ;
3232
33- import org .hibernate .dialect .MySQL8Dialect ;
33+ import org .hibernate .dialect .MySQLDialect ;
3434import org .junit .jupiter .api .Test ;
3535import org .junit .jupiter .api .extension .ExtendWith ;
3636import org .springframework .beans .factory .annotation .Autowired ;
@@ -149,8 +149,7 @@ void testEntityListFromNamedProcedure() {
149149 resultClasses = Employee .class )
150150 public static class Employee {
151151
152- @ Id
153- @ GeneratedValue //
152+ @ Id @ GeneratedValue //
154153 private Integer id ;
155154 private String name ;
156155
@@ -181,10 +180,12 @@ public void setName(String name) {
181180 @ Override
182181 public boolean equals (Object o ) {
183182
184- if (this == o )
183+ if (this == o ) {
185184 return true ;
186- if (o == null || getClass () != o .getClass ())
185+ }
186+ if (o == null || getClass () != o .getClass ()) {
187187 return false ;
188+ }
188189 Employee employee = (Employee ) o ;
189190 return Objects .equals (id , employee .id ) && Objects .equals (name , employee .name );
190191 }
@@ -194,6 +195,7 @@ public int hashCode() {
194195 return Objects .hash (id , name );
195196 }
196197
198+ @ Override
197199 public String toString () {
198200 return "MySqlStoredProcedureIntegrationTests.Employee(id=" + this .getId () + ", name=" + this .getName () + ")" ;
199201 }
@@ -265,7 +267,7 @@ public AbstractEntityManagerFactoryBean entityManagerFactory(DataSource dataSour
265267
266268 Properties properties = new Properties ();
267269 properties .setProperty ("hibernate.hbm2ddl.auto" , "create" );
268- properties .setProperty ("hibernate.dialect" , MySQL8Dialect .class .getCanonicalName ());
270+ properties .setProperty ("hibernate.dialect" , MySQLDialect .class .getCanonicalName ());
269271 factoryBean .setJpaProperties (properties );
270272
271273 return factoryBean ;
0 commit comments