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

modal generation problem #2

Closed
ainilife opened this issue Nov 20, 2015 · 2 comments
Closed

modal generation problem #2

ainilife opened this issue Nov 20, 2015 · 2 comments

Comments

@ainilife
Copy link
Contributor

对于boolean类型的值,每次都生成两个方法:isXXX() 和 getXXX(),这个object在使用jackthon的时候就会不work了。会报错。建议只生成一个方法,isXXX()。

例如:

"Could not write content: Conflicting getter definitions for property "forceWriteOnLogin": com.dianping.zebra.group.config.datasource.entity.GroupDataSourceConfig#isForceWriteOnLogin(0 params) vs com.dianping.zebra.group.config.datasource.entity.GroupDataSourceConfig#getForceWriteOnLogin(0 params) (through reference chain: com.dianping.zebra.admin.dto.ConnectStatusDto["groupDataSourceConfig"]); nested exception is com.fasterxml.jackson.databind.JsonMappingException: Conflicting getter definitions for property "forceWriteOnLogin": com.dianping.zebra.group.config.datasource.entity.GroupDataSourceConfig#isForceWriteOnLogin(0 params) vs com.dianping.zebra.group.config.datasource.entity.GroupDataSourceConfig#getForceWriteOnLogin(0 params) (through reference chain: com.dianping.zebra.admin.dto.ConnectStatusDto["groupDataSourceConfig"])"

@qmwu2000
Copy link
Contributor

qmwu2000 commented Dec 6, 2015

使用primitive="true"就可以了。

@qmwu2000 qmwu2000 closed this as completed Dec 6, 2015
@ainilife
Copy link
Contributor Author

原来如此,嘿嘿。

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