<hibernate-mapping package="com.michael.model" >
<class name="Storen" table="storen" >
<id name="storenId" type="java.lang.String">
<column name="storen_Id" />
<generator class="identity"></generator>
</id>
<property name="address" type="java.lang.String" />
<property name="storenName" type="java.lang.String" />
</class>
</hibernate-mapping>
我链接的数据库名是‘hibernate’,我并没有配置catalog="hibernate"
但我运行程序,就会报异常
1.org.hibernate.exception.SQLGrammarException: could not insert: [com.michael.model.Storen]
2.Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'hibernate.storen' doesn't exist
表名“hibernate.storen” 是数据库名再加上映射文件中的表名storen
从异常中可以看出程序自动帮我把catalog给设置了。怎样才能把它去掉!