- 博客(1)
- 收藏
- 关注
原创 关于hibernate中报错”The content of element type "class" must match ......“的一点发现
今天用hibernate测试subclass映射时发现了代码顺序影响程序运行的现象会报错的代码如下 把配置辨别者列的代码放到其他property之后,例如: <class name="Person" table="PERSONS" discriminator-value="PERSON"> <id name="id" type="java.lang.Integer">
2015-07-25 22:38:44
6497
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅