comparison backend/src/main/java/org/dive4elements/river/model/Attribute.java @ 5838:5aa05a7a34b7

Rename modules to more fitting names.
author Sascha L. Teichmann <teichmann@intevation.de>
date Thu, 25 Apr 2013 15:23:37 +0200
parents flys-backend/src/main/java/org/dive4elements/river/model/Attribute.java@18619c1e7c2a
children 4dd33b86dc61
comparison
equal deleted inserted replaced
5837:d9901a08d0a6 5838:5aa05a7a34b7
1 package org.dive4elements.river.model;
2
3 import java.io.Serializable;
4
5 import javax.persistence.Entity;
6 import javax.persistence.Id;
7 import javax.persistence.Table;
8 import javax.persistence.GeneratedValue;
9 import javax.persistence.Column;
10 import javax.persistence.SequenceGenerator;
11 import javax.persistence.GenerationType;
12
13 @Entity
14 @Table(name = "attributes")
15 public class Attribute
16 implements Serializable
17 {
18 private Integer id;
19
20 private String value;
21
22 public Attribute() {
23 }
24
25 public Attribute(String value) {
26 this.value = value;
27 }
28
29 @Id
30 @SequenceGenerator(
31 name = "SEQUENCE_ATTRIBUTES_ID_SEQ",
32 sequenceName = "ATTRIBUTES_ID_SEQ",
33 allocationSize = 1)
34 @GeneratedValue(
35 strategy = GenerationType.SEQUENCE,
36 generator = "SEQUENCE_ATTRIBUTES_ID_SEQ")
37 @Column(name = "id")
38 public Integer getId() {
39 return id;
40 }
41
42 public void setId(Integer id) {
43 this.id = id;
44 }
45
46 @Column(name = "value")
47 public String getValue() {
48 return value;
49 }
50
51 public void setValue(String value) {
52 this.value = value;
53 }
54 }
55 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org