teichmann@5844: /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde teichmann@5844: * Software engineering by Intevation GmbH teichmann@5844: * teichmann@5844: * This file is Free Software under the GNU AGPL (>=v3) teichmann@5844: * and comes with ABSOLUTELY NO WARRANTY! Check out the teichmann@5844: * documentation coming with Dive4Elements River for details. teichmann@5844: */ teichmann@5844: teichmann@5829: package org.dive4elements.river.model; aheinecke@5242: aheinecke@5242: import java.io.Serializable; aheinecke@5242: aheinecke@5242: import javax.persistence.Column; aheinecke@5242: import javax.persistence.Entity; aheinecke@5242: import javax.persistence.Id; aheinecke@5242: import javax.persistence.Table; aheinecke@5242: aheinecke@5242: @Entity aheinecke@5242: @Table(name = "cross_section_track_kinds") aheinecke@5242: public class CrossSectionTrackKind implements Serializable { aheinecke@5242: private Integer id; aheinecke@5242: private String name; aheinecke@5242: aheinecke@5242: @Id aheinecke@5242: @Column(name = "id") aheinecke@5242: public Integer getId() { aheinecke@5242: return id; aheinecke@5242: } aheinecke@5242: aheinecke@5242: public void setId(Integer id) { aheinecke@5242: this.id = id; aheinecke@5242: } aheinecke@5242: aheinecke@5242: /** aheinecke@5242: * Get name. aheinecke@5242: * aheinecke@5242: * @return The name of the Cross section kind as String. aheinecke@5242: */ aheinecke@5242: @Column(name = "name") aheinecke@5242: public String getName() { aheinecke@5242: return name; aheinecke@5242: } aheinecke@5242: aheinecke@5242: /** aheinecke@5242: * Set name. aheinecke@5242: * aheinecke@5242: * @param name the value to set. aheinecke@5242: */ aheinecke@5242: public void setName(String name) { aheinecke@5242: this.name = name; aheinecke@5242: } aheinecke@5242: } aheinecke@5242: