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
目前,虽然 BeanOeprationParser 支持从任何 AnnotatedElement 上的注解获得操作配置,但是实际上依然只支持基于 key 属性的操作。希望能够支持实体类中的任意方法的返回值作为 key ,就像 Jackson 那样,比如:
BeanOeprationParser
AnnotatedElement
Jackson
public class Foo { private String value; @Assemble(container = "foo", props = @Mapping("value")) public void getId() { // return key value } }
上述基于实例方法的配置也会和基于属性的配置一样有效,当执行时,会通过 getId 获取 key 值,然后换位数据源对象并进行属性映射。
getId
The text was updated successfully, but these errors were encountered:
Createsequence
No branches or pull requests
目前,虽然
BeanOeprationParser
支持从任何AnnotatedElement
上的注解获得操作配置,但是实际上依然只支持基于 key 属性的操作。希望能够支持实体类中的任意方法的返回值作为 key ,就像Jackson
那样,比如:上述基于实例方法的配置也会和基于属性的配置一样有效,当执行时,会通过
getId
获取 key 值,然后换位数据源对象并进行属性映射。The text was updated successfully, but these errors were encountered: