could not execute query; SQL [select count(*) as col_0_0_ from order order0_]; nested exception is o

来源:互联网 发布:linux内核源代码在哪 编辑:程序博客网 时间:2024/05/23 18:08

could not execute query; SQL [select count(*) as col_0_0_ from order order0_]; nested exception is o...

org.hibernate.exception.SQLGrammarException:…0.

在hibernate实体映射文件hbm/xml中加入表名

<class name="cn.mani123.domain.Order" table="order" catalog="phone">    <id name="orderno" column="orderno">    <generator class="native"></generator>    </id>    <property name="product_id" column="product_id"/>    <property name="account_id" column="account_id"/>    <property name="num" column="num"/> </class>
加入表名即可!
catalog="phone"


0 0
原创粉丝点击