Skip to content
New issue

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

不指定字段注解的情况下生成的对象为null #2

Open
zhang6622056 opened this issue Aug 23, 2021 · 1 comment
Open

不指定字段注解的情况下生成的对象为null #2

zhang6622056 opened this issue Aug 23, 2021 · 1 comment

Comments

@zhang6622056
Copy link

@houbb 作者您好,在不指定字段的注解情况下@datafactory 默认为空。

我的意向是 OrderMain orderMain = DataUtil.build(OrderMain.class); 通过简单的语句实现默认的对象随机值。但是生成出来确是null。

这个与实际的User案例描述不相符。请问是哪里出了问题吗?

@houbb
Copy link
Owner

houbb commented Aug 23, 2021

你可以下载下 master 的代码,运行下 DataUtilAggregateTest#buildBeanBaseTest() 中的测试类验证下,并作为参考。

注意:使用最新的版本 V1.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants