Attribute "column" must be declared for element type "property"解决办法
2018-04-17 17:39
363 查看
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 "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">
阅读更多
相关文章推荐
- 【hibernate】Attribute "column" must be declared for element type "property"解决办法
- Attribute "column" must be declared for element type "property"解决办法
- 【hibernate】Attribute "column" must be declared for element type "property"解决办法
- Attribute "column" must be declared for element type "property"解决办法
- Attribute "column" must be declared for element type "property"解决办法
- Attribute "resource" must be declared for element type "mapper".
- Attribute "scope" must be declared for element type "bean"
- Attribute "scope" must be declared for element type "bean"-[spring]
- 出现错误 Element type "LinearLayout" must be followed by either attribute specification,">"or"/>"的解决办法
- spring mvc web.xml 配置出现 Attribute "xmlns:xsi" must be declared for element type "web-app"
- Attribute "resultType" must be declared for element type "insert".
- ERROR [ValidatorFileParser] Attribute "short-circuit" must be declared forelement type "field-validator".
- [报错]Attribute "xmlns:xsi" must be declared for element type "web-app"
- Attribute "nameSpace" must be declared for element type "sqlMap".
- Attribute "resultType" must be declared for element type "update" or "insert"
- Attribute "resultCalss" must be declared for element type "select".
- FAQ(4):Attribute "resource" must be declared for element type "mapper".
- Attribute "result" must be declared for element type "select".
- Attribute "resultClass" must be declared for element type "insert".
- web.xml中的web-app中出现Attribute "xsi:schemaLocation" must be declared for element type "web-app".