Commit 27fa396
feat(metadata): SP-G Java recon Unit7 — converge physical db* onto cross-port logical attrs + drop dead DDL/migration vestiges
Removes Java's residual physical db* attr vocabulary so the metadata-module
registry manifest byte-matches the cross-port canonical (residual EMPTY).
Converged logical-equivalent db* → cross-port logical names (already on
field.base via MetaField since Unit 4):
- dbType="jsonb" (typed owned-object storage) → field.object @storage="jsonb";
migrated OMDB consumers (SimpleMappingHandlerDB.isJsonbField,
GenericSQLDriver.isJsonbField).
- dbNullable → @required (inverted), dbLength → @maxlength,
dbPrecision → @precision, dbScale → @scale; migrated codegen-mustache
HelperRegistry.
- dbColumnType / column kept (already registered on field.base; the
@dbColumnType value vocabulary remains in CoreDBMetaDataProvider as the
single cross-port home consumed by OMDB + codegen-spring + codegen-kotlin).
Dropped as dead DDL/migration vestiges (no live runtime consumer; schema is
TS-owned per ADR-0015, OMDB is pure data-access):
- field/object: dbForeignKey, dbIndex, dbUnique, previousName
- identity: dbIndexName, dbSequenceName, dbTablespace
- removed PreviousNameAttrTest + meta.rename.json (migration-rename only).
CoreDBMetaDataProvider.registerTypes now registers no field/object/identity
attrs — all cross-port logical attrs live on field.base.
Gate stays @Ignore/@disabled (Unit 8 flips it); confirmed locally the
metadata-module runner passes (residual EMPTY). Verified: metadata 925,
codegen-base 31, codegen-mustache 35, omdb 37, codegen-spring/codegen-kotlin
green, integration-tests 68 (Testcontainers persistence-conformance + api-contract).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 5d173c8 commit 27fa396
14 files changed
Lines changed: 123 additions & 254 deletions
File tree
- fixtures/registry-conformance
- server/java
- codegen-base/src/test/resources
- schema-validation
- codegen-mustache/src/main/java/com/metaobjects/generator/mustache
- metadata/src
- main/java/com/metaobjects
- database
- registry
- test
- java/com/metaobjects
- database
- registry
- resources
- omdb/src
- main/java/com/metaobjects/manager/db
- driver
- test
- java/com/metaobjects/manager/db
- resources
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
262 | 272 | | |
263 | 273 | | |
264 | 274 | | |
| |||
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | 93 | | |
95 | 94 | | |
96 | 95 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
Lines changed: 31 additions & 39 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
595 | 595 | | |
596 | 596 | | |
597 | 597 | | |
598 | | - | |
599 | | - | |
600 | | - | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
601 | 602 | | |
602 | 603 | | |
603 | | - | |
604 | | - | |
| 604 | + | |
| 605 | + | |
605 | 606 | | |
606 | | - | |
607 | | - | |
608 | | - | |
609 | | - | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
610 | 611 | | |
611 | | - | |
| 612 | + | |
612 | 613 | | |
613 | 614 | | |
614 | 615 | | |
| |||
624 | 625 | | |
625 | 626 | | |
626 | 627 | | |
627 | | - | |
628 | | - | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
629 | 631 | | |
630 | 632 | | |
631 | | - | |
632 | | - | |
| 633 | + | |
| 634 | + | |
633 | 635 | | |
634 | 636 | | |
635 | | - | |
636 | | - | |
| 637 | + | |
| 638 | + | |
637 | 639 | | |
638 | 640 | | |
639 | | - | |
| 641 | + | |
640 | 642 | | |
641 | 643 | | |
642 | 644 | | |
| |||
649 | 651 | | |
650 | 652 | | |
651 | 653 | | |
652 | | - | |
653 | | - | |
654 | | - | |
655 | | - | |
656 | | - | |
657 | | - | |
658 | | - | |
659 | | - | |
660 | | - | |
661 | | - | |
662 | | - | |
663 | | - | |
664 | 654 | | |
665 | 655 | | |
666 | 656 | | |
667 | 657 | | |
668 | 658 | | |
669 | 659 | | |
670 | | - | |
| 660 | + | |
| 661 | + | |
671 | 662 | | |
672 | 663 | | |
673 | 664 | | |
674 | | - | |
| 665 | + | |
675 | 666 | | |
676 | 667 | | |
677 | | - | |
678 | | - | |
| 668 | + | |
| 669 | + | |
679 | 670 | | |
680 | 671 | | |
681 | | - | |
| 672 | + | |
682 | 673 | | |
683 | 674 | | |
684 | 675 | | |
| |||
687 | 678 | | |
688 | 679 | | |
689 | 680 | | |
690 | | - | |
| 681 | + | |
| 682 | + | |
691 | 683 | | |
692 | 684 | | |
693 | 685 | | |
694 | | - | |
| 686 | + | |
695 | 687 | | |
696 | 688 | | |
697 | | - | |
698 | | - | |
| 689 | + | |
| 690 | + | |
699 | 691 | | |
700 | 692 | | |
701 | | - | |
| 693 | + | |
702 | 694 | | |
703 | 695 | | |
704 | 696 | | |
| |||
0 commit comments