Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
em.merge 不是一个选项,因为如果 id 不存在,我不想要新行。此外,它还调用了一个额外的选择。
我不想找到然后调用合并,因为它将再次成为额外的选择。
我希望有一种无需编写 JPQL 查询的方法,因为我不确定要更新的字段的确切数量。