Add dartson-@Property to enable out of the box compatibility with code generated for e.g. Java

This commit is contained in:
Andreas Reiter
2016-06-20 11:16:51 +02:00
parent 07ce036a9a
commit dee8a7b924

View File

@@ -4,6 +4,7 @@ part of api;
@Entity()
class {{classname}} {
{{#vars}}{{#description}}/* {{{description}}} */{{/description}}
@Property(name: '{{baseName}}')
{{{datatype}}} {{name}} = {{{defaultValue}}};
{{#allowableValues}}{{#min}} // range from {{min}} to {{max}}{{/min}}//{{^min}}enum {{name}}Enum { {{#values}} {{.}}, {{/values}} };{{/min}}{{/allowableValues}}
{{/vars}}