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.
我有点困惑,但是当我们创建外键时,我们并没有按照我们的意愿命名它,而是将它替换为 Hibernate 生成的名称,例如“FKFAEFA94EE50A59CF”。为什么我们要保留 Hibernate 生成的那个?
我很确定两者之间没有太大区别。然而,当涉及到识别在dbms. FK_PURCHASE识别或FK_YOUR_CONSTRAINT_HERE读取 Hibernate 生成的一堆随机字母要容易得多。
dbms
FK_PURCHASE
FK_YOUR_CONSTRAINT_HERE