teemoer
V2EX  ›  Java

双向一对多关联 多的一方插入一条数据 数据库却出现了条相同的记录,何解?

  •  
  •   teemoer · Nov 10, 2016 · 2950 views
    This topic created in 3522 days ago, the information mentioned may be changed or developed.

    如图所示

    跪求 帮助 谢谢

    emr

    emrJ

    PS:不能艾特别人吗

    Supplement 1  ·  Nov 10, 2016
    问题已经解决:


    心塞塞 不知道 为什么 我加上了 orphanRemove=true 就正常了 但是 我网上搜索了下 orphanRemove 作用的自动删除 无父亲的孤儿对象啊 = = 感觉和我的这个问题没啥联系 .

    疑惑呀....
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5589 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 05:58 · PVG 13:58 · LAX 22:58 · JFK 01:58
    ♥ Do have faith in what you're doing.