#set( $symbol_pound = '#' ) #set( $symbol_dollar = '$' ) #set( $symbol_escape = '\' ) /* * This is part of Geomajas, a GIS framework, http://www.geomajas.org/. * * Copyright 2008-2015 Geosparc nv, http://www.geosparc.com/, Belgium. * * The program is available in open source according to the GNU Affero * General Public License. All contributions in this program are covered * by the Geomajas Contributors License Agreement. For full licensing * details, see LICENSE.txt in the project root. */ package ${package}.server; import com.vividsolutions.jts.geom.Geometry; import org.hibernate.annotations.Type; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.Table; /** * Roads object for hibernate layer model. * * @author geomajas-gwt-archetype */ @Entity @Table(name = "road") public class Road { @Id @GeneratedValue(strategy = javax.persistence.GenerationType.IDENTITY) @Column(name = "osm_id") private Long id; private String name; private String ref; private String type; @Type(type = "org.hibernatespatial.GeometryUserType") private Geometry geometry; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getRef() { return ref; } public void setRef(String ref) { this.ref = ref; } public String getType() { return type; } public void setType(String type) { this.type = type; } public Geometry getGeometry() { return geometry; } public void setGeometry(Geometry geometry) { this.geometry = geometry; } }