org.hibernate.exception.SQLGrammarException: could not execute query

General This problem is due to the use of the tool automatically generates * Hbm.xml file occurs error, at the beginning of your program is good, but when you change the machine, access the database changes (may be used inside the table do not change), may occur org.hibernate.exception.SQLGrammarException: Could not execute JDBC Batch Update the solution is to *. hbm.xml file schema = “” The user <hibernate-mapping> changed now corresponds
<class name=”com.ecai.bean” table=”Member” schema=”web” catalog=”ecai”>
<id name=”rid” column=”RID” type=”long”>
the <generator class=”increment” /> thus be able to connect to your database, but this can be for some programs, and some will be reported You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘. member member0_ where member0_.UserName =’ ad ‘and member0_.UserPass = ‘7815696ecbf’ similar to such a mistake, this is due to the structure of your database tables and you change to another machine on the database table structure is not the same, must correspond to the good, and even the name of the case of the database table should correspond.