Sha256: f1d9070c417df54c7c17ed413ce12732bebe4669d8649e359e79b65869dcc431
Contents?: true
Size: 645 Bytes
Versions: 1
Compression:
Stored size: 645 Bytes
Contents
package <%= Configuration.full_models_package %>; import javax.persistence.Entity; import javax.persistence.Id; @Entity public class <%= class_name %> { @Id private Long id; <% @attributes.each do |att| -%> private <%= att.java_type %> <%= att.name %>; <% end -%> public void setId(Long id) { this.id = id; } public Long getId() { return id; } <% @attributes.each do |att| -%> public void set<%= att.name.camelize %>(<%= att.java_type %> <%= att.name %>) { this.<%= att.name %> = <%= att.name %>; } public <%= att.java_type %> <%= att.getter_prefix + att.name.camelize %>() { return <%= att.name %>; } <% end -%> }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vraptor-scaffold-1.3.0.rc | lib/vraptor-scaffold/generators/scaffold/model_generator/templates/objectify_model.erb |