美文网首页
2018-03-14 23:06

2018-03-14 23:06

作者: TiddAr | 来源:发表于2018-03-18 15:03 被阅读0次

    scene:

    Floor entity has dormitories (Set) field,Dormitory entity has student (Set) field,when I  import them from an excel table and batch save students use hibernate ,the struct of the excel table like that

    Clearly there is no 'floor.ID' or 'dormitory.ID' field in the table,so hibernate will insert a new floor entity into database=-=.and then---->

    solution:

    After I get student entity I query the

       

    相关文章

      网友评论

          本文标题:2018-03-14 23:06

          本文链接:https://www.haomeiwen.com/subject/tnzqqftx.html