单表 hibernate annotation 方式一对多多对一映射 各位朋友向各位求教一个问题:我使用annotation 方式的hibernate映射配置,做一个单表关联的实体类。有如下关系:id name parentId1 first null2 second 13 three 14 four 2是一个树的结构,也就是表本身的一对多,多对一的关系。配置了半天总是出错。谢谢!