Sha256: 0facd36c815d890d70fe24df8a4a6eb159a5bac6a2d3d15d0aeb9b83442a6dd1

Contents?: true

Size: 506 Bytes

Versions: 1

Compression:

Stored size: 506 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.declaration %>;
<% end -%>

<% @attributes.each do |att| -%>
	public void <%= att.setter_name %>(<%= att.declaration %>) {
		this.<%= att.name %> = <%= att.name %>;
	}

	public <%= att.java_type %> <%= att.getter_name %>() {
		return <%= att.name %>;
	}

<% end -%>
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
springmvc-scaffold-1.0.1 lib/springmvc-scaffold/generators/scaffold/model/templates/model.erb