/magstudentportal/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/magstudentportal/trunk

« back to all changes in this revision

Viewing changes to src/main/java/DB/Course.java

  • Committer: Gustav Hartvigsson
  • Date: 2017-08-04 12:42:36 UTC
  • mfrom: (6.1.2 magstudentportal-xhtml)
  • Revision ID: gustav.hartvigsson@gmail.com-20170804124236-6s9wmjrsgyvgckos
* Added getters and setters

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
16
  public UUID id;
 
17
 
 
18
  @NotNull
 
19
  @Column (name = "name", length = 50)
 
20
  public String name;
 
21
 
 
22
  @NotNull
 
23
  @Column (columnDefinition = "TEXT", name = "description")
 
24
  private String description;
 
25
 
 
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
  }
 
55
}