#1092: TeamEventAttendeeDO.kt

projectforge-business/src/main/kotlin/org/projectforge/business/teamcal/event/model/TeamEventAttendeeDO.kt JPA Entity / Team Calendar Event, projectforge-business/src/main/kotlin/org/projectforge/business/teamcal/event/model/TeamEventAttendeeDO.kt 241 lines · 157 code · 54 comments · 30 blank
JPA entity for event attendees (table T_PLUGIN_CALENDAR_EVENT_ATTENDEE), extending DefaultBaseDO. An attendee can be either a ProjectForge user (via user FK), an address book contact (via address FK), or an external URL (mailto link). Fields: number (ordering), url, address/user relations, loginToken, status (TeamEventAttendeeStatus enum), comment/commentOfAttendee, commonName, cuType, rsvp, role, additionalParams. Computed properties: eMailAddress resolves from address or user. clone() creates detached copies. Implements Comparable by id or toString. Has named query for bulk-deleting attendees by addressId. Equals/hashCode broken intentionally for technical requirements — compares by url, addressId, userId, or id.

Git History

868d6abb7 2025 -> 2026
63081666f Source file headers: 2024-> 2025.
0237d5eba Json serialization refactored: IdOnlySerializer and IdsOnlySerializer introduced.
1ffa5a1ef WIP: gradle...
c8f8ed935 Declared all entities as FetchType.LAZY (was EAGER).
4c04cfd65 MAJOR-CHANGE! Migration of integer id's to Long id's (including fk's etc.)
f5c09f87f Migration stuff in progress...
c04fb0d51 Migration stuff in progress...
06828f490 Migration stuff in progress...
b6092df09 Copyright 2023 -> 2024
ab45d51fa Copyright 2001-2022 -> 2001-2023.
4def09990 Deprecated Kotlin functions: toLowerCase -> lowerCase, toUpperCase -> uppercase.
5f7ef41b8 Copyright 2021 -> 2022
9268bc1ec Address (forced) deletion: fix: If address is used for attendees in TeamEventDO, it will be deleted first from all events.
c0f2b9de0 Tenants functionality removed everywhere (untested).
ceb63e8a1 Source code header: (C) 2001-2021.
7c79f1922 Copyright of source header -> 2020.
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...
af35917ac More code cleanup
862d2c404 TeamEventAttendeeDO.kt: NPE fix.
ca5a7c00f Optimize Imports
13efef1ee TeamEventDO.java -> TeamEventDO.kt