`
smileon
  • 浏览: 21872 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Element type "property" must be followed by either attribute specifications, ">"

    博客分类:
  • java
阅读更多

Caused by: org.dom4j.DocumentException: Error on line 15 of document  : Element type "property" must be followed by either attribute specifications, ">" or "/>". Nested exception: Element type "property" must be followed by either attribute specifications, ">" or "/>".
at org.dom4j.io.SAXReader.read(SAXReader.java:482)
at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:532)
... 40 more

hibernate配置出现问题,而property节点又却是没问题,出现这样的问题,是因为对应的*.hbm.xml文件中字段与数据库字段名不一致或者字符什么的问题,仔细检查一下,我的问题是
<property name="address" column="adrress" type="string"/>
column与数据库中的字段名不一致造成的。
分享到:
评论
1 楼 duanjudy 2011-08-31  
你的property在开始或者结尾少了尖括号。。

相关推荐

    cucu-a compiler you can understand

    The grammar specifies the structure and syntax rules that must be followed by the source code. In the case of CUCU, the grammar is defined using Extended Backus-Naur Form (EBNF), which is a notation ...

    pink(idea自定义样式无背景图片).jar 工欲善其事必先利其器!,

    &lt;option name="ANNOTATION_ATTRIBUTE_NAME_ATTRIBUTES"&gt; &lt;value&gt; &lt;option name="FOREGROUND" value="ffd700" /&gt; &lt;/value&gt; &lt;/option&gt; &lt;option name="ANNOTATION_NAME_ATTRIBUTES"&gt; &lt;value&gt; ...

    MAXQ1850 USB-HID 范例 内有SPI watchdog 代码可供参考 C 代码 编译环境cross studio

    This project has a few special settings that must be followed. 1. Create a new project as shown in section D of the main README.txt 2. Under "Project Explorer" in the upper right corner open the ...

    【原创】【源代码】myshell:操作系统编程-自己用C语言写的Linux下的Shell

    echo &lt;comment&gt; - display &lt;comment&gt; on the display followed by a new line (multiple spaces/tabs may be reduced to a single space) help - display the user manual using the more filter pause - pause ...

    BUS Hound

    drop.&lt;br&gt;&lt;br&gt;Searching&lt;br&gt;&lt;br&gt;Searching can be performed from the capture window in either the up or down direction by typing the search string in the lower left edit box followed by pressing the up ...

    schematron规则简单总结

    *[1]/self::subtitle"&gt;A "title" must be immediately followed by a "subtitle".&lt;/assert&gt; &lt;/rule&gt; &lt;/pattern&gt; ``` - **目的**:确保`title`元素后紧跟着`subtitle`元素。 - **上下文**:`title` 表示`title`...

    ObjCRuntimeGuide

    followed by detailed sections on specific aspects such as messaging, dynamic method resolution, and property declarations. Additionally, it includes figures and tables that help illustrate the ...

    Google C++ Style Guide(Google C++编程规范)高清PDF

    The format of the symbol name should be &lt;PROJECT&gt;_&lt;PATH&gt;_&lt;FILE&gt;_H_. To guarantee uniqueness, they should be based on the full path in a project's source tree. For example, the file foo/src/bar/baz.h...

    swingx包

    and that jUnit.jar is either in that directory as well OR listed on your CLASSPATH.&lt;br&gt;&lt;br&gt;You can build SwingX by going to the command line and typing&lt;br&gt;ant&lt;br&gt;&lt;br&gt;That should be it--this will test...

    abb 变频器canopen使用说明

    This chapter states the general safety instructions that must be followed when installing and operating the RCAN-01 CANopen Adapter module. The material in this chapter must be studied before ...

    Keil MDK 编译 ucOS-II 出现的警告和错误解决

    在编译过程中,可能会出现警告 A1085W:Forced user-mode LDM/STM must not be followed by use of banked R8-R14。这是因为编译器检测到强制用户模式的 LDM/STM 指令可能会导致 R8-R14 寄存器的不正确使用。解决...

    erlanghandbook

    - **`-module(Module)`**: This attribute defines the name of the module and must be specified first. The module name should match the filename without the `.erl` extension. - **`-export([Func1/Arity1,...

    skyhigh.zip

    The device supports the ONFI Read Parameter Page operation, initiated by writing ECh to the Command Register, followed by an address input of 00h. The host may monitor the R/B# pin or wait for the ...

    2009 达内Unix学习笔记

    &gt; &gt;&gt; 输出重定向 。将一个命令的输出内容写入到一个文件里面。如果该文件存在, 就将该文件的内容覆盖; 如果不存在就先创建该文件, 然后再写入内容。 输出重定向,意思就是说,将原来屏幕输出变为文件输出,...

    eda-playground-readthedocs-io-en-latest.zip

    Log in. Click the Log in button (top right) Then either click on Google or Facebook or ...(Note: The code in the right Design pane is compiled first, followed by code in the left Testbench pane.)

    Markdown常用指令,快速学会Markdown笔记

    * 下划线:使用 `&lt;u&gt;` followed by a space,例如 `&lt;u&gt;下划线部分&lt;/u&gt;` 使用快捷键 Ctrl + I、Ctrl + B、Ctrl + U 等可以快速输入字体格式。 表情包 Markdown 中可以使用表情包,例如 `:smile:` 可以显示笑脸。 ...

    PSpiceforCircuitTheoryandElectronicDevices

    weexplainindetailtheoperational procedures for the new version of PSpice (10.5) but I include here a very quick explanation of the project management procedure that must be followed in order to carry ...

    LCTF软件备份VariSpec™ Liquid Crystal Tunable Filters

    Each command is terminated with an end-of-line terminator which can be either a carriage-return &lt;c/r&gt; or line feed &lt;l/f&gt;. For RS-232 models, the baud rate and terminator character are selected using ...

Global site tag (gtag.js) - Google Analytics