-
Notifications
You must be signed in to change notification settings - Fork 304
Expand file tree
/
Copy pathFlashCard.java
More file actions
46 lines (36 loc) · 827 Bytes
/
FlashCard.java
File metadata and controls
46 lines (36 loc) · 827 Bytes
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
package com.teamtreehouse.flashy.domain;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
@Entity
public class FlashCard {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
private String term;
private String definition;
public FlashCard() {
id = null;
}
public FlashCard(String term, String definition) {
this();
this.term = term;
this.definition = definition;
}
public String getTerm() {
return term;
}
public void setTerm(String term) {
this.term = term;
}
public String getDefinition() {
return definition;
}
public void setDefinition(String definition) {
this.definition = definition;
}
public Long getId() {
return id;
}
}