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.
我有三个实体类,Key现在看起来像ValueXX
Key
Value
X
public class X { ... @ManyToMany Map<Key, Value> aMap; ... }
我的目标是配置aMap这种方式,当我从中删除映射时,Value它将从 db 中删除但 Key保留下来。 基本上,Key应该不受所有 db 操作的影响X,但Value 应该与X. 这可能吗?
aMap