skopiuje wszystko: tworze kursy, pobieram wszystkie dane i ustawiam nowe jeśli ktoś zmieni
public class Question {
private String question;
private String [] allAnswers = new String[4];
private String properlyResult;
private int Number;
public String getQuestion() {
return question;
}
public void setQuestion(String question) {
this.question = question;
}
public void setNumber(int number) {
Number = number;
}
public String[] getAllAnswers() {
return allAnswers;
}
public void setAllAnswers(String[] allAnswers) {
this.allAnswers = allAnswers;
}
public String getProperlyResult() {
return properlyResult;
}
public void setProperlyResult(String properlyResult) {
this.properlyResult = properlyResult;
}
}
public class Test {
private int idTest;
private String name;
private String author;
private String level;
private Question question;
private Course course;
public Course getCourse() {
return course;
}
public void setCourse(Course course) {
this.course = course;
}
public int getIdTest() {
return idTest;
}
public void setIdTest(int idTest) {
this.idTest = idTest;
}
public String getCategory() {
return category;
}
public void setCategory(String category) {
this.category = category;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getAuthor() {
return author;
}
public void setAuthor(String author) {
this.author = author;
}
public String getLevel() {
return level;
}
public void setLevel(String level) {
this.level = level;
}
public Question getQuestion() {
return question;
}
public void setQuestion(Question question) {
this.question = question;
}
}
public class Course {
private String subject;
private String content;
public String getSubject() {
return subject;
}
public void setSubject(String subject) {
this.subject = subject;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
}