我有一个包含两列 col1、col2 的表,它们是复合主键。请问,该表支持 MySQL InnoDB 集群中的组复制吗?
错误信息:
org.springframework.jdbc.UncategorizedSQLException:休眠刷新:无法执行 JDBC 批量更新;uncategorized SQLException for SQL [/* insert collection row com.domain.BatchClass.documentTypes */ insert into batch_class_document_type (batch_class_id, document_type_id) values (?, ?)]; SQL状态[HY000];错误代码 [3098];该表不符合外部插件的要求。嵌套异常是
显示创建表:
CREATE TABLE `batch_class_document_type` (
`batch_class_id` bigint(20) NOT NULL,
`document_type_id` bigint(20) NOT NULL,
PRIMARY KEY (`batch_class_id`,`document_type_id`),
KEY `FKB72AFCD2997AC796` (`document_type_id`),
KEY `FKB72AFCD2C473EFCA` (`batch_class_id`),
CONSTRAINT `FKB72AFCD2997AC796` FOREIGN KEY (`document_type_id`)
REFERENCES `document_type` (`id`),
CONSTRAINT `FKB72AFCD2C473EFCA` FOREIGN KEY (`batch_class_id`)
REFERENCES `batch_class` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8