View Code? Open in Web Editor
NEW
Generate toJson() Method For Java Beans
buildjsonobject's Introduction
- Generate
toJson
Method For Java Beans
- How To Use:
- Json tool supported by
org.apache.tapestry.json.JSONObject
- If not java file,remove toJson from generate items
- Fix configuration persist bug
- Support One-To-Many Java Beans
- Only use private fields to build json
- Support ignore fields(like serialVersionUID, logger,etc.) By IDEA Setttings
- Support un-String type fields generate toString() automatically
- If Date type field, use
Converter.toString()
;
- If BigDecimal type field
- If field name contain "qty"๏ผ use
Converter.toQtyString()
;
- Else use
Converter.toMoneyString()
;
- Support import
com.hd123.common.Converter
and org.apache.tapestry.json.JSONObject packages
automatically
buildjsonobject's People
Contributors
Stargazers