【Hibernate】Table '表名' doesn't exist
来源:互联网 发布:进销存软件sobong 编辑:程序博客网 时间:2024/05/22 11:44
1.
被注释掉,或者中间不是create
2.表中有关键字,如:
order,level,address,degree等。
4.在配置文件中不小心写了两个同名属性,如:
<property name="hbm2ddl.auto">create</property>
2.表中有关键字,如:
order,level,address,degree等。
3.将
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
替换成
<property name="dialect">org.hibernate.dialect.MySQL5Dialect</property>
MysqlDialect这个是比较老的,如果你是用的mysql5,最好是用MySQL5Dialect,后面的方言是针对mysql5的一些新特性做了一些优化的,更快了效率,Mysql5Dialect是继承了MysqlDialect的所以MysqlDialect能干的事 Mysql5Dialect都能干。
4.在配置文件中不小心写了两个同名属性,如:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="org.hibernate.auction">
<class name="com.runsky.domain.AdditionalInformation"
table="AdditionalInformation" lazy="false">
<id name="id" column ="ID" length="32">
<generator class="uuid.hex"/>
</id>
<property name="tag" column ="tag" />
<property name="content" column ="content" />
<property name="id" column ="id" />
</class>
</hibernate-mapping>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="org.hibernate.auction">
<class name="com.runsky.domain.AdditionalInformation"
table="AdditionalInformation" lazy="false">
<id name="id" column ="ID" length="32">
<generator class="uuid.hex"/>
</id>
<property name="tag" column ="tag" />
<property name="content" column ="content" />
<property name="id" column ="id" />
</class>
</hibernate-mapping>
阅读全文
0 0
- 【Hibernate】Table '表名' doesn't exist
- Table '表名' doesn't exist
- [新手]hibernate 表不存在 MySQLSyntaxErrorException: Table doesn't exist
- hibernate不能自动建表:MySQLSyntaxErrorException: Table '' doesn't exist
- hibernate---Table 'XXX.XXX' doesn't exist
- Hibernate ERROR: Table doesn't exist
- mysql表名大写,造成jpa Table doesn't exist问题
- 10020---hibernate---Table 'XXX.XXX' doesn't exist
- Hibernate创建数据表出错:table doesn't exist
- Mysql table '' doesn`t exist
- 使用Mysql 5.5数据库Hibernate自动建表创建表出错table doesn't exist
- ERROR JDBCExceptionReporter:234 - Table 'xxxxxxxx' doesn't exist hibernate无法自动创建表
- Hibernate与Mysql 5.5创建表出错--table doesn't exist
- 表不存在1146:table 'xxx.xxx' doesn't exist
- 数据库备份 Mysql table '' doesn`t exist
- 1146 - Table 'xxx.xxx' doesn't exist
- Mysql “Table 'mysql.servers' doesn't exist”
- Table 'database1.xxx' doesn't exist
- 子网划分的两个例子
- 测试用例
- 2017移动端UI设计规范模板参考以及设计规范的好处
- Spring 注解详解
- python基础之异常处理
- 【Hibernate】Table '表名' doesn't exist
- 手机端页面自适应解决方案—rem布局
- 如何在TensorFlow中用深度学习修复图像英文版
- 猫扑素数
- ArrayList的基本工作原理详解add
- 链表求和II
- symfony使用过程
- python学习之单元测试
- Java 二分法查找