There was a problem fetching the latest pipeline status.
Merge branch 'db-ektorp' into 'master'
Migration to Ektorp and refactoring of the database layer A summary of the changes: * CouchDB4J has been replaced by Ektorp. * CouchDBDao has been split up into multiple repositories: One for each entity. * Jackson is used instead of JSON-lib for POJO <-> JSON (de)serialization. * Jackson's `@JsonView`'s are used to mark which properties are (de)serialized for the API and/or CouchDB * A lot of persistence code could be simplified since serialization is handled automatically by the `ObjectMapper`. * Entities and related Classes have been renamed: * `Content` <- `Question` / `SkillQuestion` / `LecturerQuestion` * `Comment` <- `FeedbackQuestion` / `AudienceQuestion` * CouchDB design docs can now be automatically created by the backend if necessary. They are included as JavaScript code which is parsed and transformed to JSON at startup using Java's `ScriptEngine`. * `MediaType`s for API versioning have been introduced: * `vnd.de.thm.arsnova.v2+json`: the format as used in ARSnova 2.x * `vnd.de.thm.arsnova.v3+json`: * ISO 8601 dates instead of timestamps * `id` instead of `_id`, `revision` instead of `_rev` * `api.indent-response-body` can be set in configuration for pretty responses for API debugging. * Empty (e.g. `null`) entity properties are ignored for serialization See merge request !68
Branches
Tags
Pipeline
#9319
passed
with stages
in
2 minutes and 32 seconds
Showing
- pom.xml 14 additions, 3 deletionspom.xml
- src/main/java/de/thm/arsnova/cache/CacheBuster.java 3 additions, 3 deletionssrc/main/java/de/thm/arsnova/cache/CacheBuster.java
- src/main/java/de/thm/arsnova/config/AppConfig.java 23 additions, 4 deletionssrc/main/java/de/thm/arsnova/config/AppConfig.java
- src/main/java/de/thm/arsnova/config/PersistanceConfig.java 103 additions, 0 deletionssrc/main/java/de/thm/arsnova/config/PersistanceConfig.java
- src/main/java/de/thm/arsnova/controller/CommentController.java 24 additions, 24 deletions...ain/java/de/thm/arsnova/controller/CommentController.java
- src/main/java/de/thm/arsnova/controller/ContentController.java 99 additions, 99 deletions...ain/java/de/thm/arsnova/controller/ContentController.java
- src/main/java/de/thm/arsnova/controller/LegacyController.java 3 additions, 3 deletions...main/java/de/thm/arsnova/controller/LegacyController.java
- src/main/java/de/thm/arsnova/controller/SessionController.java 1 addition, 1 deletion...ain/java/de/thm/arsnova/controller/SessionController.java
- src/main/java/de/thm/arsnova/dao/CouchDBDao.java 0 additions, 2886 deletionssrc/main/java/de/thm/arsnova/dao/CouchDBDao.java
- src/main/java/de/thm/arsnova/dao/IDatabaseDao.java 0 additions, 289 deletionssrc/main/java/de/thm/arsnova/dao/IDatabaseDao.java
- src/main/java/de/thm/arsnova/dao/package-info.java 0 additions, 4 deletionssrc/main/java/de/thm/arsnova/dao/package-info.java
- src/main/java/de/thm/arsnova/domain/LearningProgressFactory.java 6 additions, 6 deletions...n/java/de/thm/arsnova/domain/LearningProgressFactory.java
- src/main/java/de/thm/arsnova/domain/PointBasedLearningProgress.java 3 additions, 3 deletions...ava/de/thm/arsnova/domain/PointBasedLearningProgress.java
- src/main/java/de/thm/arsnova/domain/QuestionBasedLearningProgress.java 3 additions, 3 deletions.../de/thm/arsnova/domain/QuestionBasedLearningProgress.java
- src/main/java/de/thm/arsnova/domain/VariantLearningProgress.java 5 additions, 5 deletions...n/java/de/thm/arsnova/domain/VariantLearningProgress.java
- src/main/java/de/thm/arsnova/entities/Answer.java 61 additions, 38 deletionssrc/main/java/de/thm/arsnova/entities/Answer.java
- src/main/java/de/thm/arsnova/entities/Authorize.java 5 additions, 0 deletionssrc/main/java/de/thm/arsnova/entities/Authorize.java
- src/main/java/de/thm/arsnova/entities/Comment.java 39 additions, 32 deletionssrc/main/java/de/thm/arsnova/entities/Comment.java
- src/main/java/de/thm/arsnova/entities/CommentReadingCount.java 13 additions, 8 deletions...ain/java/de/thm/arsnova/entities/CommentReadingCount.java
- src/main/java/de/thm/arsnova/entities/Content.java 131 additions, 39 deletionssrc/main/java/de/thm/arsnova/entities/Content.java
Please register or sign in to comment