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

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/30 10:55:42
hibernate.cfg.xml出错:The content of element type

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


hibernate.cfg.xml出错:The content of element type "property" must match "(meta*,(column|formula)*
恩,根据我的经验,可能是你的映射文件没有写好的原因,
这样说吧,假如你在建立一个类,叫Student,包名字叫做com.bjsxt.hibernate.model
那么你就得建立一个映射文件,名字叫做Student.hbm.xml
里面的内容如图



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