Hibernate使用MyExclipse10自动生成配置文件报错

使用MyExclipse10自动生成hibernate映射文件如下:

结果发现启动服务时报以下错误:

原因:因为hibernate换过项目地址,所以dtd文件的地址也换掉了。在hbm.xml文件里面把

http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd

换成

http://www.jboss.org/dtd/hibernate/hibernate-mapping-3.0.dtd

问题就解决了。

Hibernate使用MyExclipse10自动生成配置文件报错

时间: 2024-08-06 08:14:21

Hibernate使用MyExclipse10自动生成配置文件报错的相关文章

【Unity3D】生成工程报错解决—UnityEditor.HostView:OnGUI() Error building Player: Couldn't build player because of unsupported data on target platform.

错误 错误1:An asset is marked as dont save, but is included in the build: unityEditor.HostView:OnGUI() 错误2:Building - Failed to write file: sharedassets0.assetsUnityEditor.HostView:OnGUI() 错误3:Error building Player: Couldn't build player because of unsup

菜鸟调错(四)——Spring与DWR集成,配置文件报错

背景简介: 该项目是市信用办的一个系统,之前好像是一个石家庄的公司负责的.我属于是半路接手.拿到源码后,根据他们给的简(shao)单(de)明(ke)了(lian)的说明把项目搭起来.结果可想而知,项目文件一片红.于是就开始解决这些错误,好在很多错误都是类似的.经过一番捣鼓,大部分的错误都解决了,有一个Spring跟DWR集成配置的错误,错误信息如下: Multiple annotations found at this line: - schema_reference.4: Failed to

c3p0配置文件报错 对实体 "characterEncoding" 的引用必须以 ';' 分隔符结尾。

原配置文件: 异常截图: 百度可知: 在xml的配置文件中 :要用  &   代替 更改后配置文件: c3p0配置文件报错 对实体 "characterEncoding" 的引用必须以 ';' 分隔符结尾.

【原创】mybatis配置文件报错:The content of element type "configuration" must match "(properties>settings>typeAliases>typeHa...

最近使用mybatis,在mybatis的xml配置文件中总是会提示错误 The content of element type "configuration" must match "(properties>settings>typeAliases>typeHandlers>objectFactory>objectWrapperFactory>plugins>environments>mappers?)". 后来发现

Hibernate自动生成配置文件和实体类

用Hibernate自动生成,实体类和配置文件步骤: 窗口--Perspective--打开试图--Hibernate(点击打开如下图所示) 右键:AddConfigurRation:(如下图所示) 以上只是配置好了,数据库的链接和hibernate.cfg.xml文件的生成. 下面演示自动生成实体类和实体类所对应的hbm.xml文件: 点击确定配置完成了

hibernate 主键自动生成

hibernate 中的主键自动生成策略 可以手动在程序中维持一个当前的最大id字段 也可以在配置文件中配置,不用手动编写方法实现: 配置如下 <class name="com.jat.bisarea.ho.Test" table="BA_VVTEST">   <id name="id" type="int" column="ID">     //该句指定使用hibernate自带的

配置文件报错:不允许有匹配 [xX][mM][lL] 的处理指令目标。

http://www.68idc.cn/help/buildlang/ask/20150108163110.html —————————————————————————————————————————————————— 框架整合 的时候,XML配置文件大多数情况是从另一个框架里面复制的. 今天在练习整合的时候明明之前的项目对着,但是复制到这个项目后就报错. 错误代码: <span style="color:#FF0000;">严重: Exception sending co

关于dubbo服务的xml配置文件报错的问题

在配置dubbo服务的过程中,经常会遇到虽然程序能够跑起来,但是配置文件一堆红叉,虽然不影响功能,但是确实很让人恶心. 报错信息如下: Multiple annotations found at this line:- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'.- schema_reference.

fastjson自动转化参数报错

开发环境:spring-mvc4.1.7.fastjson1.2.7 问题描述:系统采用的前后端完全分离方式,前端页面使用ajax调用后台服务时,想用fastjson自动转化请求参数对象. // 前端调用$.ajax({ url : "bas/test.do", type : "POST", async : true, contentType : "application/json; charset=utf-8", data : country,