hibernate.cfg.xml出错:The content of element type "property" must match "(meta*,(column|formula)*

来源:学生作业学帮网 编辑:学帮网 时间:2024/05/19 18:10:12

hibernate.cfg.xml出错:The content of element type "property" must match "(meta*,(column|formula)*


恩,根据我的经验,可能是你的映射文件没有写好的原因,
这样说吧,假如你在建立一个类,叫Student,包名字叫做com.bjsxt.hibernate.model
那么你就得建立一个映射文件,名字叫做Student.hbm.xml
里面的内容如图



估计红线是你出错的原因,试试吧