feat(orm): MyBatis XML mapper scanning#1607
Open
hongtewu-dotcom wants to merge 2 commits into
Open
Conversation
Adds MyBatis XML mapper support to the ORM phase. Scans <mapper> XML files, extracts table names from SQL, and creates QUERIES edges from Mapper methods to table nodes. No schema changes needed. Key behaviors: - Namespace to Java file path resolution (dot-to-slash) - Table extraction handles FROM/INTO/UPDATE/JOIN, CDATA, XML comments - Method-level edges via pre-built index; strips #N overload suffix - Inherited methods (e.g. MybatisBaseMapper) fall back to file-level - XML-only orphan statements skipped (no edge) Tests: test/integration/orm-dataflow.test.ts, 6 pass.
|
Someone is attempting to deploy a commit to the NexusCore Team on Vercel. A member of the Team first needs to authorize it. |
P0: strip inner-class suffix from namespace before path resolution P1: support Dao/DAO/Repository.java naming in addition to Mapper.java Tests: CDATA extraction, XML comment exclusion, namespace fallback
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds MyBatis XML mapper support to the ORM phase. Scans XML files, extracts table names from SQL, and creates QUERIES edges from Mapper methods to table nodes. No schema changes needed.
Key behaviors:
Tests: test/integration/orm-dataflow.test.ts, 6 pass.
Summary
Motivation / context
Areas touched
gitnexus/(CLI / core / MCP server)gitnexus-web/(Vite / React UI).github/(workflows, actions)eval/or other toolingAGENTS.md,CLAUDE.md,.cursor/,llms.txt, etc.)Scope & constraints
In scope
Explicitly out of scope / not done here
Implementation notes
Testing & verification
cd gitnexus && npm testcd gitnexus && npm run test:integration(if core/indexing/MCP paths changed)cd gitnexus && npx tsc --noEmitcd gitnexus-web && npm test(if web changed)cd gitnexus-web && npx tsc -b --noEmit(if web changed)gitnexus-web/e2e/)Risk & rollout
Checklist
AGENTS.md/ overlays changed: headers, scope block, and changelog updated per project conventions