#124: IHKCommentObject.java

plugins/org.projectforge.plugins.ihk/src/main/java/org/projectforge/plugins/ihk/IHKCommentObject.java Path: plugins/...ihk/src/main/java/.../IHKCommentObject.java · Lines: 70 · Type: Java POJO — JSON deserialization model 70 lines · 31 code · 25 comments · 14 blank

Configuration DTO for the IHK plugin. Plain Java bean with three fields, no annotations — used to deserialize the JSON stored in the trainee's address book comment field (see README). Deserialized by IHKForm using JsonUtils.fromJson().

Fields

Design

Simple JavaBean with two constructors (default + all-args) and getters/setters. No JPA annotations — this is not a persistent entity. The JSON is stored as a raw string in the AddressDO.comment database column and parsed at runtime. Created by three interns in May 2020 — the simplicity reflects its origin as an internship project.

Usage chain

AddressDO.commentJsonUtils.fromJson(json, IHKCommentObject.class)IHKExporter uses fields to filter timesheets and populate Excel headers.