#1088: TeamCalDO.kt
projectforge-business/src/main/kotlin/org/projectforge/business/teamcal/admin/model/TeamCalDO.kt JPA Entity / Team Calendar, projectforge-business/src/main/kotlin/org/projectforge/business/teamcal/admin/model/TeamCalDO.kt 201 lines · 117 code · 66 comments · 18 blank
JPA entity for team calendars (table T_CALENDAR), extending BaseUserGroupRightsDO for group/user access control. Features: title, owner (PFUserDO, lazy), description, includeLeaveDaysForUsers/groups (CSV user/group ids for vacation display), external subscription support (externalSubscription boolean, externalSubscriptionUrl, externalSubscriptionUpdateInterval, externalSubscriptionCalendarBinary as lazy BLOB, externalSubscriptionHash for change detection). The externalSubscriptionUrlAnonymized computed property shortens URLs for logging. Hibernate Search indexed with @TypeBinding for usersgroups bridge. Jackson @JsonCreator factory enables deserialization from a Long id.
Git History
868d6abb7 2025 -> 2026
63081666f Source file headers: 2024-> 2025.
0237d5eba Json serialization refactored: IdOnlySerializer and IdsOnlySerializer introduced.
a72903e36 *.java, *.kt: StringBuffer -> StringBuilder.
4c04cfd65 MAJOR-CHANGE! Migration of integer id's to Long id's (including fk's etc.)
c4950ae12 Migration stuff in progress...
ad9ac6b63 Migration stuff in progress...
f5c09f87f Migration stuff in progress...
c1d14ecdb Migration stuff in progress...
4f5a458c9 Migration stuff in progress...
c04fb0d51 Migration stuff in progress...
06828f490 Migration stuff in progress...
b6092df09 Copyright 2023 -> 2024
ab45d51fa Copyright 2001-2022 -> 2001-2023.
ef89f322f Constants (Const) refactored.
5f7ef41b8 Copyright 2021 -> 2022
c0f2b9de0 Tenants functionality removed everywhere (untested).
ceb63e8a1 Source code header: (C) 2001-2021.
e0a193236 TeamCalDO: externalSubscriptionUrlAnonymized: i18n
446472b2f PropertyInfo.tooltip is now supported. TeamCalRest....
7c79f1922 Copyright of source header -> 2020.
d3a178833 Wrong substitution of "calendar" -> "datetime" while refactoring, reverted commit from 12.12.2019.
8675a1dbe Found big performance issue: Declared all Kotlin JPA entities and their properties as open. Lazy loading wasn't supported by Hibernate and results in thousands of JPA queries...
252b28955 Kost2DO and TeamCalDO: JsonCreator for deserialization from Int (instead of Number).
d849a79cc Kost2DO and TeamCalDO: JsonCreator for deserialization from Number.
3f70598d3 New CalEvent now usable on demand (config value calendar.useNewCalendarEvents=true). Flyway migration scripts added for creating new table t_calendar_events.
050a5ccd7 @NoHistory needed as field annotation: @field:NoHistory.
f1d5f2915 Addressbooks and calendars: BaseUserGroupRight introduced and optimized (code duplicates and useless multiple calls of access methods removed).
05244ff19 CopyRight of all Kotlin file-header updated or created.
e5ba55b8d ToString method in business package introduced: DefaultBaseDO using now new toJsonString method at default.
9034a4bc0 Compiler warnings fixed...
464c7a6a9 Doc
4ebd4e3b6 TeamCalDO: fixed todo removed.
f6fb1edbc TeamCalDO.java -> TeamCalDO.kt