关于hibernater找不到表
来源:互联网 发布:阿里云 网站负责人 编辑:程序博客网 时间:2024/06/10 23:21
今天在将数据List 插入表中,发现报错,但是说没有table
我看看xml 配置是update
后来实在找不到错误,于是将那个文件放在oracle上面跑
但是,后来发现是<mapping>其他对文件的印象,我现在只留一个单个文件就可以跑
百度上我找了找,他说是方言,希望为你们带来解决方法
这是我的xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">org.gjt.mm.mysql.Driver</property>
<property name="hibernate.connection.password">root</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost/ssh</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="hibernate.c3p0.max_size">20</property>
<property name="hibernate.c3p0.min_size">1</property>
<property name="hibernate.c3p0.timeout">5000</property>
<property name="hibernate.c3p0.max_statements">100</property>
<property name="hibernate.c3p0.idle_test_period">3000</property>
<property name="hibernate.c3p0.acquire_increment">2</property>
<property name="hibernate.c3p0.validate">true</property>
<property name="hibernate.show_sql">true</property>
<property name="hibernate.format_sql">true</property>
<property name="hibernate.hbm2ddl.auto">update</property>
<mapping class="com.test.model.Person_Set_Map"/>
</session-factory>
</hibernate-configuration>
---------------------------------------------------------------
这是之之前的xml,
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">org.gjt.mm.mysql.Driver</property>
<property name="hibernate.connection.password">root</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost/ssh</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="hibernate.c3p0.max_size">20</property>
<property name="hibernate.c3p0.min_size">1</property>
<property name="hibernate.c3p0.timeout">5000</property>
<property name="hibernate.c3p0.max_statements">100</property>
<property name="hibernate.c3p0.idle_test_period">3000</property>
<property name="hibernate.c3p0.acquire_increment">2</property>
<property name="hibernate.c3p0.validate">true</property>
<property name="hibernate.show_sql">true</property>
<property name="hibernate.format_sql">true</property>
<property name="hibernate.hbm2ddl.auto">update</property> <!-- 是否自动创建表格 update更新 create创造 -->
<mapping class="com.test.model.User"/>
<mapping class="com.test.model.News"/>
<mapping class="com.test.model.TestGenerAated"/>
<mapping class="com.test.model.EnumeratedTest"/>
<mapping class="com.test.model.Person"/>
<mapping class="com.test.model.DateTest"/>
<mapping class="com.test.model.TableGenerator"/>
<mapping class="com.test.model.UUIDTest"/>
<mapping class="com.test.model.Person_Set_Map"/>
</session-factory>
</hibernate-configuration>
-----------------------------------------------
<mapping class="com.test.model.Person"/>
这个mapping的错误,可能是名字重复,
- 关于hibernater找不到表
- Spring Hibernater
- hibernater基础
- hibernater List
- Map hibernater
- hibernater <property name="hbm2ddl.auto">none</property> 表的重建立
- Hibernater 一级缓存
- Hibernater 概念性 知识点
- hibernater面试一 .
- Hibernater 5.0问题
- hibernater Eclipsep配置
- hibernater 效率提升问题
- hibernater 对实体关联
- hibernater 双向思考
- Hibernater测试代码
- hibernater 复习,总结
- 关于找不到QTSQL目录
- 关于sudo找不到命令
- eclipse Unhandled event loop exception No more handles 问题解决
- windows下模拟高并发来进行负载测试
- Android图片轮播
- 不法分子正大量滥用苹果iOS企业证书打包非法App
- 6.用两个栈来实现一个队列,完成队列的Push和Pop操作
- 关于hibernater找不到表
- Laravel5.4初试-php artisan migrate问题
- faster rcnn在ubuntu环境下使用GPU模式并用cuDNN v5加速
- Python pandas快速入门
- 前台开发总结03
- 【51nod 1190】最小公倍数之和 V2
- Java List 用法代码分析
- 机器学习笔记十四:随机森林
- elasticsearch this is not a http port