Sha256: 57b1765d7a8f1621e8907364cf0796547d4f10304268ad7739171d6d6ca3fdd0
Contents?: true
Size: 642 Bytes
Versions: 1
Compression:
Stored size: 642 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 | lib/vraptor-scaffold/generators/scaffold/model_generator/templates/objectify_model.erb |