saveourtool/save-cloud
Auf GitHub ansehenDon't use `@Entity`s directly for (de)serialization, use DTOs instead
Open
#1.132 geöffnet am 1. Sept. 2022
backlogenhancementgood first issuerefactoring
Repository-Metriken
- Stars
- (38 Stars)
- PR-Merge-Metriken
- (PR-Metriken ausstehend)
Beschreibung
Certain classes can be marked as opted-out of serialization (maybe @JsonIgnoreType?) and their usages in transport replaced with
Execution->ExecutionDtoUser->UserInfo(consider #1130 as an example of why this is needed)
Another idea would be to create a custom detekt rule that would check that
- methods annotated with various
@...Mappingreturn not-@Entityclass or Mono bodyValue(),ObjectMapper.writeValueetc. are used with not-@Entityclasses