Sha256: d198274dc577694e02dbb5e05d9e5fc0523baba59ee1b82e6c9b2df00240ad18

Contents?: true

Size: 564 Bytes

Versions: 1

Compression:

Stored size: 564 Bytes

Contents

package <%= Configuration.full_models_package %>;

<% imports.each do |import| -%>
import <%= import %>;
<% end -%>
@javax.persistence.Entity
public class <%= class_name %> extends Entity {

<% @attributes.each do |att| -%>
	private <%= att.java_type %> <%= att.name %>;
<% end -%>

<% @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/model.erb