/magstudentportal/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/magstudentportal/trunk
6.1.1 by Gustav Hartvigsson
Started work on the DB/JPA stuffs
1
package DB;
2
3
import javax.persistence.Column;
4
import javax.persistence.Entity;
5
import javax.persistence.GeneratedValue;
6
import javax.persistence.Id;
7
import javax.validation.constraints.NotNull;
8
import java.io.Serializable;
9
import java.util.UUID;
10
11
@Entity
12
public class Course implements Serializable {
13
14
  @Id
15
  @GeneratedValue
8 by Gustav Hartvigsson
* Added getters and setters
16
  public UUID id;
6.1.1 by Gustav Hartvigsson
Started work on the DB/JPA stuffs
17
18
  @NotNull
19
  @Column (name = "name", length = 50)
8 by Gustav Hartvigsson
* Added getters and setters
20
  public String name;
6.1.1 by Gustav Hartvigsson
Started work on the DB/JPA stuffs
21
22
  @NotNull
23
  @Column (columnDefinition = "TEXT", name = "description")
24
  private String description;
25
8 by Gustav Hartvigsson
* Added getters and setters
26
  public UUID
27
  getId () {
28
    return id;
29
  }
30
31
  public void
32
  setId (UUID id) {
33
    this.id = id;
34
  }
35
36
  public String
37
  getName () {
38
    return name;
39
  }
40
41
  public void
42
  setName (String name) {
43
    this.name = name;
44
  }
45
46
  public String
47
  getDescription () {
48
    return description;
49
  }
50
51
  public void
52
  setDescription (String description) {
53
    this.description = description;
54
  }
6.1.1 by Gustav Hartvigsson
Started work on the DB/JPA stuffs
55
}