Deprecate getSession, use getSessionFromKeyword instead
getSession throws an HTTP exception, which is not good style. Additionally, as it calls getSessionFromKeyword internally -- which has a caching annotation -- this caching mechanism will not work because it only works if the method is called from another object. This is due to the way Spring is using proxies to intercept the calls.
Showing
- src/main/java/de/thm/arsnova/dao/CouchDBDao.java 6 additions, 6 deletionssrc/main/java/de/thm/arsnova/dao/CouchDBDao.java
- src/main/java/de/thm/arsnova/dao/IDatabaseDao.java 7 additions, 1 deletionsrc/main/java/de/thm/arsnova/dao/IDatabaseDao.java
- src/main/java/de/thm/arsnova/services/QuestionService.java 7 additions, 4 deletionssrc/main/java/de/thm/arsnova/services/QuestionService.java
- src/main/java/de/thm/arsnova/services/SessionService.java 3 additions, 3 deletionssrc/main/java/de/thm/arsnova/services/SessionService.java
Please register or sign in to comment