在学习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-configuration
修改为mapping的头文件就行了
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC