luxiang1996 最近的时间轴更新
luxiang1996

luxiang1996

V2EX 第 530154 号会员,加入于 2021-01-24 08:52:32 +08:00
luxiang1996 最近回复了
2021-02-02 06:59:49 +08:00
回复了 NoKey 创建的主题 程序员 jpa,两个表加一个中间表,如何才能不生成外键
@JoinTable(name = "tablea_tableb",

            joinColumns = {@JoinColumn(name = "tablea_id", referencedColumnName = "id")},

            inverseJoinColumns = {@JoinColumn(name = "tableb_id", referencedColumnName = "id")},

            foreignKey = @ForeignKey(name = "none", value = ConstraintMode.NO_CONSTRAINT),

            inverseForeignKey = @ForeignKey(name = "none", value = ConstraintMode.NO_CONSTRAINT))
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1129 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 19:14 · PVG 03:14 · LAX 12:14 · JFK 15:14
Developed with CodeLauncher
♥ Do have faith in what you're doing.