You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Java ORM compatibility on MatrixOne 4.0.0-rc3 — 9,260/10,361 (Hibernate / MyBatis / jOOQ / JDBC / Spring Data / Flyway / Liquibase) #6
Compatibility of Java's most-used MySQL stacks against MatrixOne 4.0.0-rc3, from a 10,361-scenario suite (clients/java). Part of the cross-language study (#1, see CROSS_LANGUAGE.md).
Result: 9,260 pass / 1,100 fail / 1 skip. Per framework: Spring Data JPA 28/0 and JDBI 24/0 (clean), Hibernate 211/4 (98.1%), jOOQ 574/13, MyBatis 369/8, JDBC 4079/240, Flyway 7/2, Liquibase 0/9, plus generated grids. The ORM/JPA runtime is strong; failures cluster into 4 themes — and the migration-tool one is the headline.
1. 🟠 Migration tools blocked by an information_schema GROUP BY rejection (1149)
Liquibase is fully blocked (0/9) and Hibernate hbm2ddl=update/validate and Flyway are hit by the same root cause:
liquibase: migration/update_xml_changelog -> 1149 column "tables.TABLE_TYPE" must appear in the GROUP BY
hibernate: schemagen/hbm2ddl_update_introspection -> 1149 column "tables.TABLE_TYPE" must appear in the GROUP BY
flyway: migration/baseline_existing_schema -> 1064 SQL parser error
MatrixOne rejects the introspection query these tools run against information_schema.tables (it enforces ONLY_FULL_GROUP_BY on a query the MySQL planner accepts). This blocks Flyway / Liquibase / Hibernate auto-DDL — i.e. the standard Spring Boot migration path. (Compounds the missing-IS-table issues from #1/#3.)
jdbc/mybatis/jooq: type .../double_precision -> 1064 SQL parser error
The canonical double-column DDL across these stacks (and Hibernate) emits DOUBLE PRECISION. Fix: accept it as DOUBLE. Shared with Python (Django/Peewee) and Node (Sequelize).
3. 🟠 Column-type restrictions (20105)
jdbc: column/pk/enum -> 20105 ENUM column cannot be in primary key
jdbc: type/default_value/json -> 20105 JSON column cannot have a default value
jdbc: type/coalesce/json -> 20203 invalid argument function coalesce, bad value [JSON VARCHAR]
ENUM/SET in a PK or UNIQUE, and JSON column defaults, are rejected — these are valid in MySQL and are emitted by common entity mappings.
4. 🟡 JPQL/transaction gaps
hibernate: jpql/length_fn -> 20105 character_length not supported
hibernate: transaction/nested_savepoint -> 20101 savepoint has not been implemented
JPQL LENGTH() maps to CHARACTER_LENGTH (unimplemented), and nested-transaction savepoint rollback is unimplemented (U2 in #1).
Priority: (1) fix the information_schema GROUP BY rejection — unblocks Flyway / Liquibase / Hibernate auto-DDL (the Spring Boot migration path); (2) accept DOUBLE PRECISION; (3) allow ENUM/SET in PK/unique and JSON defaults; (4) ROLLBACK TO SAVEPOINT + CHARACTER_LENGTH.
Activity