Skip to content

v1.8.0

Compare
Choose a tag to compare
@Ahoo-Wang Ahoo-Wang released this 21 Jan 01:58
· 837 commits to main since this release

⭐ New Features

  • support scanning packages to automatically register CosIdAccessor.
        CosIdAccessorRegistry registry = new DefaultAccessorRegistry(new DefaultAccessorParser(AnnotationDefinitionParser.INSTANCE));
        DefaultCosIdScanner scanner =
            new DefaultCosIdScanner(new String[] {"me.ahoo.cosid.accessor.scanner.entity"}, new NamedDefinitionParser("id"), registry);
        scanner.scan();
  • add CosIdAccessorParser interface
  • add CosIdAccessorRegistry interface

⛏️ Refactor

  • refactor and enhance CosIdAccessor interface
  • rename CosIdDefinition to IdDefinition
  • remove @CosId#friendlyId

⭐ 新特性

  • 支持扫描包自动注册 CosIdAccessor
        CosIdAccessorRegistry registry = new DefaultAccessorRegistry(new DefaultAccessorParser(AnnotationDefinitionParser.INSTANCE));
        DefaultCosIdScanner scanner =
            new DefaultCosIdScanner(new String[] {"me.ahoo.cosid.accessor.scanner.entity"}, new NamedDefinitionParser("id"), registry);
        scanner.scan();
  • 添加 CosIdAccessorParser interface
  • 添加 CosIdAccessorRegistry interface

⛏️ 重构

  • 重构 CosIdAccessor interface
  • 重命名 CosIdDefinitionIdDefinition
  • 移除 @CosId#friendlyId