-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCourse.java
47 lines (39 loc) · 863 Bytes
/
Course.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package io.newgen.springbootstarter.course;
import io.newgen.springbootstarter.topic.Topic;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
// this is course class
@Entity
public class Course {
@Id
private String id;
private String name;
private String description;
@ManyToOne
private Topic topic;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Topic getTopic() {
return topic;
}
public void setTopic(Topic topic) {
this.topic = topic;
}
}