Errors prompted by the Java Background:
Com. MySQL. JDBC. Exceptions. jdbc4.mysqlsyntaxerrorexception: Table 'hibernate. id_gen 'doesn' t exist
11:26:56, 984 error jdbcexceptionreporter: 101-unknown table 'hibernate _ Sequence 'in Field List
Error prompted during junit4 testing:
Org. hibernate. Exception. sqlgrammarexception: cocould not get next Sequence Value
This problem occurs because the configuration of hibernate. cfg. XML is incorrect. My error is that the MySQL connection configuration is modified, but the hibernate dialect is not modified.
For example:
<Property name ="Connection. driver_class"> Com. MySQL. JDBC. Driver </property>
<Property name ="Connection. url"> JDBC: mysql: // 127.0.0.1: 3306/hibernate </property>
<Property name ="Connection. username"> Root </property>
<Property name ="Connection. Password"> Center </property>
<Property name ="Dialect"> Org. hibernate. dialect. oracle10gdialect </property>