[Java Play Framework] Fix to the default values (#5879)

* Fix to the default values. It did not take care of the "default" and also was setting to a bad default when not set.

* Just make a difference between string and non string instead of placing all types in the mustache file
This commit is contained in:
Jean-François Côté
2017-07-17 04:51:02 -04:00
committed by wing328
parent a2d19a1feb
commit bf74de3a5a
2 changed files with 5 additions and 5 deletions

View File

@@ -1 +1 @@
{{#isBoolean}}false{{/isBoolean}}{{#isInteger}}0{{/isInteger}}{{#isDouble}}0.0{{/isDouble}}{{#isLong}}0L{{/isLong}}{{#isFloat}}0.0{{/isFloat}}{{#isString}}""{{/isString}}
{{#defaultValue}}{{#isString}}"{{/isString}}{{{defaultValue}}}{{#isString}}"{{/isString}}{{/defaultValue}}{{^defaultValue}}null{{/defaultValue}}