Skip to content

v0.5.0

Latest

Choose a tag to compare

@github-actions github-actions released this 02 Oct 18:23
· 8 commits to main since this release

One operator context for cross-cutting persistence concerns: audit fields and fail-closed multi-tenancy in the MyBatis starter, set per request by the web starter. ArchGuard fix hints are now available in English.

Added

  • Operator and OperatorContext in ddk-core (com.ddk.core.context): who is acting and for which tenant, with runAs / callAs that restore the previous value and wrap to carry the operator to another thread
  • The web starter sets OperatorContext for each request when the application declares an OperatorResolver bean
  • The MyBatis starter fills createBy and updateBy from the operator (String or Long fields), next to createTime and updateTime
  • Multi-tenancy in the MyBatis starter (ddk.mybatis.tenant.enabled=true): every statement gets the tenant condition from OperatorContext, and a statement without a tenant fails instead of reading all tenants; ignore-tables and MyBatis-Plus's @InterceptorIgnore are the exemptions
  • ArchGuard fix hints are available in English and Chinese. The language follows the JVM's default locale and can be set with the system property ddk.archguard.language (en or zh)

Changed

  • The reasons attached to the rules in CommonArchRules (the because clauses shown in reports) are now in English