org.hibernate.MappingException: property mapping has wrong number of columns in ENUM entity
问题 I created database, which have a references with ENUM table and I have exception in entity of this enum. scripts example: CREATE TABLE status ( code VARCHAR(40), status ENUM('not started', 'in progress', 'finished') ); insert into status (code, status) values (1, 'not started'), (2, 'in progress'), (3, 'finished'); CREATE TABLE `explorer` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `create_date` datetime DEFAULT NULL, `query` varchar(255) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL, `title`