aheinecke@5060: package de.intevation.flys.model; aheinecke@5060: aheinecke@5060: import java.io.Serializable; aheinecke@5060: import java.util.List; aheinecke@5060: import java.math.BigDecimal; aheinecke@5060: aheinecke@5060: import javax.persistence.Column; aheinecke@5060: import javax.persistence.Entity; aheinecke@5060: import javax.persistence.Id; aheinecke@5060: import javax.persistence.JoinColumn; aheinecke@5060: import javax.persistence.OneToOne; aheinecke@5060: import javax.persistence.Table; aheinecke@5060: aheinecke@5060: import org.hibernate.Session; aheinecke@5060: import org.hibernate.Query; aheinecke@5060: aheinecke@5060: import de.intevation.flys.backend.SessionHolder; aheinecke@5060: aheinecke@5060: @Entity aheinecke@5060: @Table(name = "fed_states") aheinecke@5060: public class FedState implements Serializable { aheinecke@5060: private Integer id; aheinecke@5060: private String name; aheinecke@5060: aheinecke@5060: @Id aheinecke@5060: @Column(name = "id") aheinecke@5060: public Integer getId() { aheinecke@5060: return id; aheinecke@5060: } aheinecke@5060: aheinecke@5060: public void setId(Integer id) { aheinecke@5060: this.id = id; aheinecke@5060: } aheinecke@5060: aheinecke@5060: /** aheinecke@5060: * Get name. aheinecke@5060: * aheinecke@5060: * @return name of the Federal State as String. aheinecke@5060: */ aheinecke@5060: @Column(name = "name") aheinecke@5060: public String getName() aheinecke@5060: { aheinecke@5060: return name; aheinecke@5060: } aheinecke@5060: aheinecke@5060: /** aheinecke@5060: * Set name. aheinecke@5060: * aheinecke@5060: * @param name the value to set. aheinecke@5060: */ aheinecke@5060: public void setName(String name) aheinecke@5060: { aheinecke@5060: this.name = name; aheinecke@5060: } aheinecke@5060: };