Skip to content
CAI
Software that uses CAICheck a score

meixuesong/aggregate-persistence-sample

58.8

Adequate · 8 November 2026

779

lines of production code

Java

primary language

7

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 cca.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 (+0.6)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 76 → 76 (+0.0)
  • Architecture 69 → 69 (+0.0)
  • Maturity 65 → 65 (+0.0)
  • Readiness 45 → 45 (+0.0)
  • Security 70 → 80 (+9.9)
  • Domain Modelling 100 → 100 (+0.0)

Resolved (2)

  • Documentation: no project overview (README.md)
  • Documentation: no usage examples (README.md)

Written by cca.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 8 November 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.11.2 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.3+preprod-45ab2cab63de.