Skip to content

fix: make legacy Business ID allocation explicit and collision-safe - #157

Merged
philipgreat merged 1 commit into
mainfrom
fix/business-id-legacy-boundary-137
Sep 23, 2026
Merged

philipgreat merged 1 commit into
mainfrom
fix/business-id-legacy-boundary-137

Conversation

@philipgreat

Copy link
Copy Markdown
Contributor

Closes #137.

Deprecates the old BusinessIdGenerator APIs while retaining their existing PREFIXyyyyMMddNNNN format and independent sequence namespace. Legacy allocation now uses context.businessDate(), rejects digit-range exhaustion, and uses an optimistic conditional update. Legacy JDBC schema creation is explicit via context.ensureSchema(); the constructor and allocation path no longer create tables.

Local verification: JDK 21 mvn -q test; ./scripts/verify-examples.sh; mvn -q spotbugs:check -pl !examples/conformance/lib,!examples/conformance. All exited 0.

Compatibility note: external callers of the deprecated API have not been inventoried, so this PR does not remove it or merge its sequence state with BusinessIdService.

@philipgreat
philipgreat merged commit e3cc787 into main Sep 23, 2026
3 checks passed
@philipgreat
philipgreat deleted the fix/business-id-legacy-boundary-137 branch November 23, 2026 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Converge legacy BusinessIdGenerator with context-owned BusinessIdService semantics

1 participant