#1023: ContractDO.kt

projectforge-business/src/main/kotlin/org/projectforge/business/orga/ContractDO.kt JPA Entity (Contract), projectforge-business/src/main/kotlin/org/projectforge/business/orga/ContractDO.kt 176 lines · 122 code · 25 comments · 29 blank
Legal contract entity for the Orga module. Maps to T_CONTRACT table with fields for both contract parties (co-contractors, contract persons, signers), validity dates, signing date, status, filing, and resubmission tracking. Implements AttachmentsInfo for document attachment support.

Entity Structure

Extends DefaultBaseDO and AttachmentsInfo. Key fields include number (auto-generated), date, dual-party fields (A/B sides with co-contractor, contract person, signer), validFrom/Until, signingDate, status (enum ContractStatus), type, filing, resubmissionOnDate, and attachment metadata. Named queries support duplicate number checking and date range selection. Contract history was split from single validity field to validFrom/validUntil in commit 6d57579ce.

Git History

868d6abb7 2025 -> 2026
63081666f Source file headers: 2024-> 2025.
ad9ac6b63 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.
5f7ef41b8 Copyright 2021 -> 2022
c0f2b9de0 Tenants functionality removed everywhere (untested).
c50a6feae Attachments: counter and size of attachments in sum implemented.
ceb63e8a1 Source code header: (C) 2001-2021.
7c3acd42c React: Contract.
8b60b4c0a wip: attachments
9351d31d6 Contract -> ContractDO
89eacf6a4 wip attachments.
b282ba08f MagicFilter: auto support of dates, boolean etc.
6d57579ce Contract: Split Validity into Validityfrom and ValidityUntil
ca0d5470e Remove DateBridges from DOs.
7c1c48782 Replacing more instance of java.sql.Date with java.time.LocalDate
7c79f1922 Copyright of source header -> 2020.
19b97fcc3 DateBridge: encoding = EncodingType.STRING for all DateBridges.
8675a1dbe Declared all Kotlin JPA entities and their properties as open.
39cdd224c Hibernate search: DateBridge...
510e8d796 Heavy WIP: NamedQueries everywhere...
05244ff19 CopyRight of all Kotlin file-header updated or created.
3e46751ed Add new warning log
d600b7e29 @get:Enumerated for field status added.
073ba23c2 Fix issues regarding Contracts.
d83514d69 ContractDO.java -> ContractDO.kt