Attribute "column" must be declared for element type "property"解决办法

2人阅读 评论(0) 收藏 举报
分类:
hibernate,自己写的xxx.hbm.xml文件 出现错误:
Attribute "column" must be declared for element type "property"

   头部文件为
hibernate.cfg.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">

   这个应该改为mapping的头文件就行了
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC
          "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
          "http://hibernate.sourceforge.net /hibernate-mapping-3.0.dtd">
查看评论

Attribute "statementType" must be declared for element type "procedure"

struts2框架,持久层使用ibatis,出现以下错误: Attribute "statementType" must be declared for element type "procedure...
  • u010009900
  • u010009900
  • 2014-01-06 10:05:27
  • 2347

Attribute "scope" must be declared for element type "bean"-[spring]

今天在做spring测试的时候,发现这个错误:      [java] Caused by: org.xml.sax.SAXParseException: Attribute "scope" m...
  • lqclh502
  • lqclh502
  • 2012-09-27 14:04:48
  • 5487

Attribute "scope" must be declared for element type "bean"

使用的是 方式查看dtd发现定义里应该写而不是
  • lsj19830812
  • lsj19830812
  • 2010-07-28 16:09:00
  • 4674

Attribute "resultClass" must be declared for element type "insert".

iBatis,在SQL映射xml中的insert元素中写了resultClass属性,例如: insert id="putUser" parameterClass="domain.User" r...
  • jiuai455
  • jiuai455
  • 2013-02-23 19:39:36
  • 1581

Attribute "nameSpace" must be declared for element type "sqlMap".

在学习ibatis的时候遇到的异常你可能写了多个orm配置文件,每个配置文件里都进行一些CRUD之类的操作,难免会遇到两个或者多个配置文件中的都有一个statement的id命名为 find***, ...
  • xiao_cs
  • xiao_cs
  • 2009-09-15 16:10:00
  • 9669

Attribute "resource" must be declared for element type "mapper".

Mybatis项目配置别名配置文件时遇到的问题遇到如下问题:Attribute "resource" must be declared for element type "mapper". 解决方案:...
  • u012129885
  • u012129885
  • 2016-06-13 15:17:10
  • 4322

scope" must be declared for element type "bean"异常

今天把spring配置增加scope,但是启动异常,报,org.xml.sax.SAXParseException: Attribute "scope" must be declared for el...
  • zi_jun
  • zi_jun
  • 2012-12-07 23:26:36
  • 2001

Attribute "resultCalss" must be declared for element type "select".

Caused by: org.xml.sax.SAXParseException: Attribute "resultCalss" must be declared for element type ...
  • z278718149
  • z278718149
  • 2015-08-24 17:11:50
  • 2501

spring mvc web.xml 配置出现 Attribute "xmlns:xsi" must be declared for element type "web-app"

Multiple annotations found at this line: - Attribute "xmlns:xsi" must be declared for element type ...
  • xushuangshuang1
  • xushuangshuang1
  • 2015-05-12 10:15:31
  • 9823

[报错]Attribute "xmlns:xsi" must be declared for element type "web-app"

Multiple annotations found at this line: - Attribute “version” must be declared for elemen...
  • qq_28301007
  • qq_28301007
  • 2018-02-12 09:12:16
  • 58
    个人资料
    等级:
    访问量: 2
    积分: 10
    排名: 248万+
    文章分类
    文章存档