通过 intellij hibernate 持久性工具生成模型时关系引用失效 table

Relationship References disbled table while generating model through intellij hibernate persistence tool

我在 mysql 上创建了一个 table,下面是 sql

CREATE TABLE `ssk_cms_category_transaction_type_relation` (
  `categoryId` int(11) NOT NULL,
  `typeId` int(11) NOT NULL,
  `createdTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`categoryId`,`typeId`),
  KEY `FK_ssk_cms_category_transaction_type_relation1` (`typeId`),
  CONSTRAINT `FK_ssk_cms_category_transaction_type_relation` FOREIGN KEY (`categoryId`) REFERENCES `ssk_cms_content_category` (`contentCategoryId`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_ssk_cms_category_transaction_type_relation1` FOREIGN KEY (`typeId`) REFERENCES `ssk_transaction_type` (`typeId`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1

在尝试使用 intellij 中的休眠持久性工具生成其模型时,如果我检查 显示默认关系,我会收到以下错误,任何人都可以帮助我理解这一点。我尝试使用谷歌搜索,但没有找到解决方案

该消息表明提到的 ssk_cms_category_transa... table 引用了另一个 table 的关系,该关系未包含在模型生成中。所以你应该 select 这另一个 table 将它包含到生成中以避免错误。