hibernate.cfg.xml出错:The content of element type "property" must match "(meta*,(column|formula)*
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/06 18:20:17
![hibernate.cfg.xml出错:The content of element type](/uploads/image/z/10213375-31-5.jpg?t=hibernate.cfg.xml%E5%87%BA%E9%94%99%EF%BC%9AThe+content+of+element+type+%22property%22+must+match+%22%28meta%2A%2C%28column%7Cformula%29%2A)
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
里面的内容如图
估计红线是你出错的原因,试试吧