Sha256: 61b7e0e131476c5aab40ea4acfff328e60a2db37130299a7055b95a5585bb969

Contents?: true

Size: 562 Bytes

Versions: 5

Compression:

Stored size: 562 Bytes

Contents

package <%= models_base_package %>;

public class <%= class_name %> {

<% for attribute in attributes -%>
<% if attribute.type == :has_one -%>
  <%= attribute.name.classify %> <%= attribute.name %>;
<% elsif attribute.type == :has_many -%>
  java.util.List<<%= attribute.name.classify %>> <%= attribute.name %>;
<% else -%>
  <%= type_map[attribute.type] || attribute.type.to_s.classify %> <%= attribute.name %>;
<% end -%>

<% end -%>
<% if options[:timestamps] %>
  //TODO timestamps

<% end -%>
<% if options[:timestamps] %>
  //TODO modified_by

<% end -%>
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
resty-generators-0.7.3 lib/generators/resty/templates/Model.java~
resty-generators-0.7.2 lib/generators/resty/templates/Model.java~
resty-generators-0.7.1 lib/generators/resty/templates/Model.java~
resty-generators-0.7.0 lib/generators/resty/templates/Model.java~
resty-generators-0.6.0 lib/generators/resty/templates/Model.java~