- Generate
toJson
Method For Java Beans - How To Use:
- Alt+Insert - toJSON
- 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()
;
- If field name contain "qty", use
- If Date type field, use
- Support import
com.hd123.common.Converter
andorg.apache.tapestry.json.JSONObject packages
automatically
- First Upload