⭐ 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
- 重命名
CosIdDefinition
为 IdDefinition
- 移除
@CosId#friendlyId