作业帮 > 英语 > 作业

hibernate.cfg.xml出错:The content of element type "property" m

来源:学生作业帮 编辑:拍题作业网作业帮 分类:英语作业 时间:2024/04/27 17:39:13
hibernate.cfg.xml出错:The content of element type "property" must match "(meta*,(column|formula)*


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


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