Sha256: 8a9c227b6571fd491a2e1cff7e2f3d6f11a17120362b7ca5fb1af9278cbeeb3c

Contents?: true

Size: 445 Bytes

Versions: 1

Compression:

Stored size: 445 Bytes

Contents

package app.models;

@javax.persistence.Entity
public class <%= class_name %> extends Entity {
	
<% @attributes.each do |att| -%>
	private <%= att.type %> <%= att.name %>;
<% end -%>
	
<% @attributes.each do |att| -%>
	public void set<%= att.name.capitalize %>(<%= att.type %> <%= att.name %>) {
		this.<%= att.name %> = <%= att.name %>;
	}
	
	public <%= att.type %> get<%= att.name.capitalize %>() {
		return <%= att.name %>;
	}
	
<% end -%>
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vraptor-scaffold-0.0.1.beta5 lib/generators/scaffold_generator/model_generator/templates/model.erb