两个文件内容如下:
<?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"><!-- Generated by MyEclipse Hibernate Tools. -->
<hibernate-configuration><session-factory>
<property name="dialect">net.sf.hibernate.dialect.MySQLDialect</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="connection.url">jdbc:mysql://localhost:3306/person</property>
<property name="connection.username">root</property>
<property name="connection.password">123321</property>
<mapping resource="com/Customer.hbm.xml" /></session-factory></hibernate-configuration>
<?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"><!-- Generated by MyEclipse Hibernate Tools. -->
<hibernate-configuration><session-factory>
<property name="dialect">net.sf.hibernate.dialect.MySQLDialect</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="connection.url">jdbc:mysql://localhost:3306/person</property>
<property name="connection.username">root</property>
<property name="connection.password">123321</property>
<mapping resource="com/Customer.hbm.xml" /></session-factory></hibernate-configuration>
解决方案 »
- 求一个 js正则表达式
- 系统增加了hibernate就被卡死!?
- 用什么方法能够 防止没有注册的用户直接输入网址 登陆只能是注册用户浏览的网页?
- xml 解析
- 服务器对外租用 (j2ee应用运行环境+数据库)
- 关于eclipse里的使用问题!!!!请教各位!!!!急!!
- 通过asix的api能捕获到接收和发送的消息吗?
- 问个ejb打包发布的菜鸟问题
- 招聘兼职(1-2名),1外企公司,有个J2EE的项目
- 请教:JB7+weblogic7+oracle9,启动服务时候的异常怎么解决???
- 基础问题??? 我该如何调用这个方法哪?
- ibatis连数据库的一个问题。。(我是菜鸟,请高手们前来指导呀。。)
hibernate.connection.driver_class=com.mysql.jdbc.Driver
hibernate.connection.url=jdbc:mysql://localhost:3306/person
hibernate.connection.username=root
hibernate.connection.password=123321
hibernate.show_sql=true
这是2.0的
3.0这句应该是
org.hibernate.dialect.MySQLDialect
这就是2.0和3.0的区别了
好郁闷呀