#821: AddressDO.kt

projectforge-business/src/main/kotlin/org/projectforge/business/address/AddressDO.kt Kotlin @Entity JPA/Hibernate Search, projectforge-business/src/main/kotlin/org/projectforge/business/address/AddressDO.kt 568 lines · 397 code · 101 comments · 70 blank

Purpose

JPA entity representing an address (contact) in the system. Maps to table T_ADDRESS. Extends DefaultBaseDO and implements DisplayNameCapable. Annotated with @Indexed for Hibernate Search full-text queries.

Fields

ColumnTypeDescription
contact_statusenum (ContactStatus)ACTIVE, NON_ACTIVE, UNINTERESTING, DEPARTED, PERSONA_INGRATA
address_statusenum (AddressStatus)UPTODATE, OUTDATED, LEAVED
uidStringUUID, unique constraint, auto-generated on insert
nameString(255)Last name / organization name
birth_nameString(255)Birth name (formerly)
first_nameString(255)First name
formenum(10)Form of address (Mr/Mrs/Company/...)
titleString(255)Academic title
positionTextString(255)Job position
organizationString(255)Company/organization
divisionString(255)Division/department
Business: phone, mobile, faxString(255)@GenericField with PhoneNumberBridge
Business: addressText, zipCode, city, country, stateString(255)Full-text indexed
Postal: addressText, zipCode, city, country, stateString(255)Full-text indexed, prefixed with postal_
Private: phone, mobile, addressText, zipCode, city, country, stateString(255)Full-text indexed, prefixed with private_
email, private_emailString(255)Email addresses
websiteString(255)Website URL
communication_languageLocalePreferred communication language
public_keyString(20000)GPG public key
fingerprintString(255)Key fingerprint
commentString(5000)Free-text comment
birthdayLocalDateBirthday (date only)
image_last_updateDateTimestamp of last image modification

Computed Properties (Transient)

Relationships

Constraints

Unique constraint on uid column. Index on uid. Indexes on both FK columns of t_addressbook_address.

Git History

868d6abb7 2026-01-01 2025 -> 2026
2aff80bc4 2025-10-26 Fix VCard image export + type-safe transient image access
63081666f 2025-01-01 Source headers: 2024-> 2025
0237d5eba 2024-12-30 Json serialization refactored: IdOnlySerializer/IdsOnlySerializer
2081426e0 2024-12-29 Merge branch develop into typos-projectforge-business
5f9bbfbd3 2024-12-27 Fix typos in projectforge-business directory
943947aaa 2024-12-24 Support gif/jpeg for address images. Remove deprecated rest stuff
e80cfaa1a 2024-11-12 Migration stuff in progress...
4942c854d 2024-11-12 Migration stuff in progress...
a72903e36 2024-10-14 StringBuffer -> StringBuilder