Changeset ef048be for src/main/java/com
- Timestamp:
- 09/28/23 18:21:47 (14 months ago)
- Branches:
- main
- Parents:
- c3268ca
- Location:
- src/main/java/com/example/kvizko
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/kvizko/models/EmbeddedClasses/SelectedchoiceIdClass.java
rc3268ca ref048be 12 12 public class SelectedchoiceIdClass implements Serializable { 13 13 14 private long choiceid;14 private Long choiceid; 15 15 16 16 private long selectedchoiceid; -
src/main/java/com/example/kvizko/models/Selectedchoice.java
rc3268ca ref048be 25 25 } 26 26 27 27 @Override 28 public String toString() { 29 return String.valueOf(selectedchoiceIdClass.getChoiceid()); 30 } 28 31 } -
src/main/java/com/example/kvizko/models/Selectionquestion.java
rc3268ca ref048be 19 19 private List<Choice> choices; //ova mozhe da se iskoristi za ponatamu 20 20 21 @Override 22 public String toString() { 23 return String.valueOf(questionid); 24 } 21 25 22 26 } -
src/main/java/com/example/kvizko/web/Controller.java
rc3268ca ref048be 198 198 List<Choice> selectedChoices=(List<Choice>) session.getAttribute("selectedChoices"); 199 199 Choice selectedChoiceObj=choiceService.getById(selectedChoice); 200 selectedChoiceObj.setSelectionquestion(null);201 200 selectedChoices.add(selectedChoiceObj); 202 201 session.setAttribute("selectedChoices", selectedChoices);
Note:
See TracChangeset
for help on using the changeset viewer.