We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
参见 BeanKeyResoler,支持使用带分隔符的字符串简化属性映射配置,比如:
BeanKeyResoler
@Assemble( container = "user", props = { @Mapping(src = "a", ref = "b"), @Mapping(src = "c", ref = "d"), @Mapping("e") } ) private Integer id;
该配置可简化为:
@Assemble( container = "user", prop = "a:b, c:d, e" ) private Integer id;
或
@Assemble( container = "user", prop = { "a:b", "c:d", "e" } ) private Integer id;
基于字符串的属性映射规则与 @Mapping 注解保持语义上的一致:
@Mapping
a:b
@Mapping(src = "a", ref = "b")
a:
@Mapping(src = "a")
:b
@Mapping(ref = "b")
a
@Mapping("a")
此部分功能后续可考虑抽离为独立组件完成,从而支持一定程度上的自定义。
The text was updated successfully, but these errors were encountered:
feat(Assemble): support for configuring attribute mappings in the for…
bfba7f8
…m of literals (GitHub #230)
bd63648
Createsequence
No branches or pull requests
参见
BeanKeyResoler
,支持使用带分隔符的字符串简化属性映射配置,比如:该配置可简化为:
或
基于字符串的属性映射规则与
@Mapping
注解保持语义上的一致:a:b
等同于@Mapping(src = "a", ref = "b")
;a:
等同于@Mapping(src = "a")
;:b
等同于@Mapping(ref = "b")
;a
等同于@Mapping("a")
;此部分功能后续可考虑抽离为独立组件完成,从而支持一定程度上的自定义。
The text was updated successfully, but these errors were encountered: