#979: RechnungsPositionDO.kt

projectforge-business/src/main/kotlin/org/projectforge/business/fibu/RechnungsPositionDO.kt JPA Entity, projectforge-business/src/main/kotlin/org/projectforge/business/fibu/RechnungsPositionDO.kt 122 lines · 78 code · 32 comments · 12 blank
JPA entity mapped to table t_fibu_rechnung_position representing a line item within an outgoing invoice. Extends AbstractRechnungsPositionDO. Has a @JsonBackReference many-to-one to RechnungDO (unique constraint on rechnung_fk + number). Links to an order position via auftragsPosition (many-to-one to AuftragsPositionDO, lazy). Supports independent period-of-performance via periodOfPerformanceType, periodOfPerformanceBegin, periodOfPerformanceEnd. Cost assignments are @JsonManagedReference one-to-many to KostZuweisungDO ordered by index. Provides newClone() for deep cloning with cost assignments. Originally migrated from Java (2019-06-12).

Git History

868d6abb7 2026-01-01 Kai Reinhard: 2025 -> 2026
aa20b7708 2025-02-03 Kai Reinhard: NewGroupSelectPanel fixed (used in wizard). (Eingangs)RechnungsPositionDO: @get:JoinColumn -> mappedBy.
63081666f 2025-01-01 Kai Reinhard: Source file headers: 2024-> 2025.
0237d5eba 2024-12-30 Kai Reinhard: Json serialization refactored: IdOnlySerializer and IdsOnlySerializer introduced.
db2599ab8 2024-12-24 Kai Reinhard: History in orderbook, incming/outgoing invoices and projects.
4bc37b3a1 2024-11-04 Kai Reinhard: Migration stuff in progress...
b47c21af6 2024-10-30 Kai Reinhard: Refactored caching and calculations with invoices (not yet finished)
fa194d7f8 2024-10-10 Kai Reinhard: Migration stuff in progress...
4c04cfd65 2024-09-14 Kai Reinhard: MAJOR-CHANGE! Migration of integer id's to Long id's (including fk's etc.)
f5c09f87f 2024-08-24 Kai Reinhard: Migration stuff in progress...
c04fb0d51 2024-08-13 Kai Reinhard: Migration stuff in progress...
06828f490 2024-08-13 Kai Reinhard: Migration stuff in progress...
b6092df09 2024-01-09 Kai Reinhard: Copyright 2023 -> 2024
ab45d51fa 2023-01-01 Kai Reinhard: Copyright 2001-2022 -> 2001-2023.
f984352a0 2022-06-01 Kai Reinhard: (Eingangs)Rechnung(sposition): @JsonBackReference/@JsonManagedReference: KostZuweisungDO
a9cf30719 2022-06-01 Kai Reinhard: (Eingangs)Rechnung(sposition): @JsonBackReference/@JsonManagedReference.
5f7ef41b8 2022-02-18 Kai Reinhard: Copyright 2021 -> 2022
c0f2b9de0 2021-04-09 Kai Reinhard: Tenants functionality removed everywhere (untested).
ceb63e8a1 2021-03-08 Kai Reinhard: Source code header: (C) 2001-2021.
ca0d5470e 2020-02-10 Jan Brümmer: Remove DateBridges from DOs.
78b436d9e 2020-01-17 Jan Brümmer: Replace instances of java.util.date and java.sql.Date with java.time.LocalDate
7c79f1922 2020-01-03 Kai Reinhard: Copyright of source header -> 2020.
1cf12f943 2019-11-19 Kai Reinhard: Rechnungsposition->Kostzuweisung: Infinitive loop in json serialization fixed.
bc7b1761c 2019-11-14 Kai Reinhard: Eingangsrechnungen: Kostzuweisungen fixed.
19b97fcc3 2019-11-14 Kai Reinhard: DateBridge: encoding = EncodingType.STRING for all DateBridges in all DO's.
e92b3afd0 2019-11-13 Kai Reinhard: Jackson: JsonBackReference/JsonManagedReference -> JsonIdentityInfo
8675a1dbe 2019-11-11 Kai Reinhard: 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...
a55ef0c14 2019-11-06 Kai Reinhard: Heavy WIP: refactoring of (Eingangs)Rechnung*. Found a big performance killer!!!!!
812b5b751 2019-11-06 Kai Reinhard: Heavy WIP: refactoring of (Eingangs)Rechnung*. Found a big performance killer!!!!!
39cdd224c 2019-11-02 Kai Reinhard: Hibernate search: DateBridge...
985286296 2019-09-03 Kai Reinhard: hibernate 5.4.3 -> 5.4.4, ehcache introduced (again).
3bd2b6e9d 2019-08-14 Jan Brümmer: RechnungRest: Add position list
97d00031d 2019-07-15 Kai Reinhard: Auftrag*DO, AddressDO, *Rechnung*DO: performance improved (using now LAZY instead of EAGER loading).
00372579b 2019-06-14 Jan Brümmer: RechnungDO is now linked to Menu.
2c92507bc 2019-06-13 Kai Reinhard: {Eingangs}RechnungsPositionDO.rechnungId is now val (not needed as var) and should be JPA transient.
f2b55f6aa 2019-06-12 Jan Brümmer: RechnungsPositionDO.java - RechnungsPositionDO.kt EingangsrechnungsPositionDO.java -> EingangsrechnungsPositionDO.kt AbstractRechnungsPositionDO.java -> AbstractRechnungsPositionDO.kt