Skip to content
CAI
Software that uses CAICheck a score

meixuesong/aggregate-persistence-sample

59.3

Adequate · 21 September 2026

779

lines of production code

Java

primary language

4

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This is a Java-based order management system built with Spring Boot and MyBatis. It provides APIs for creating, updating, and checking out orders, utilizing selective updates to optimize database interactions. The codebase includes comprehensive integration tests to verify the order lifecycle and is structured using Maven for dependency and build management.

Features

Add order management and persistence with selective updates

Introduces a complete order management feature, including an OrderController, OrderService, and OrderFactory to handle creating, updating, and checking out orders. The implementation uses MyBatis for data access, featuring a key behavioral change: order and order item updates are performed selectively, updating only the changed fields rather than the entire record, which improves efficiency and supports optimistic locking via versioning.

src/main · high confidence

Test coverage

Added integration tests for the order management API

Added new test classes, including a base \ApiTest\ and specific tests for the \OrderController\, to verify order creation, updates, item modifications, and checkout processes.

src/test · high confidence

Dependencies

Introduce Maven build for the aggregate-persistence sample

Added a Maven (pom.xml) build file for the aggregate-persistence sample project, establishing the project structure and dependencies. This includes Spring Boot 2.6.2, aggregate-persistence 1.2.3, Spring Boot starters for JDBC, JPA, and Web, MyBatis (2.1.0), MyBatis Generator (1.3.7/1.3.6), Lombok (1.18.6), and H2 for testing. The configuration also sets up the Spring Boot Maven plugin, MyBatis Generator plugin, and release-profile plugins (Nexus staging, source/javadoc/GPG signing, JaCoCo, and maven-source/javadoc plugins).

(dependencies) · medium confidence

Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 58 → 59 (+1.2)
  • Rubric changed (rubric-2026.08.19 → rubric-2026.09.15) — scores are not directly comparable.

Lenses

  • Code Health 100 → 100 (+0.0)
  • Architecture 69 → 69 (+0.0)
  • Maturity 63 → 63 (+0.0)
  • Readiness 39 → 46 (+6.3)
  • Security 100 → 78 (-22.2)
  • Domain Modelling 100 → 100 (-0.0)

Resolved (9)

  • Coverage not included — suite not readable by the collector
  • Dependency hygiene not measured — dependency manifest found but not parsed for hygiene
  • No exposed public API
  • Scanner failed to run — not a clean result
  • Test reliability not included
  • early-stage repository — too few commits for a meaningful bus factor
  • early-stage repository — too little history to judge knowledge freshness
  • git history depth insufficient
  • git history depth insufficient

New (8)

  • Dependency hygiene PARTLY measured — Maven/Gradle declarations read, no dependency graph resolved
  • Documentation: no installation or build instructions (README.md)
  • Documentation: no usage examples (README.md)
  • No SBOM
  • No build provenance
  • No dependency advisory monitoring
  • Scanner failed to run — not a clean result
  • Scanner failed to run — not a clean result

Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

meixuesong/aggregate-persistence-sample was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 21 September 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 77f2917b5a24e0568ecacce434bd23ef59722f02 — the exact code this score is about.
  • Scored under rubric-2026.09.15 — the same rubric and the same method as every other entry in this index.
  • Measured by watchdog.canine.dev using codehealth-analyzer preprod-fa71c66cabd8.