#1056: ScriptingDao.kt
projectforge-business/src/main/kotlin/org/projectforge/business/scripting/ScriptingDao.kt Generic DAO Wrapper / Scripting Facade, projectforge-business/src/main/kotlin/org/projectforge/business/scripting/ScriptingDao.kt 88 lines · 37 code · 39 comments · 12 blank
Generic scripting DAO that wraps any BaseDao to provide a simplified API for script authors. Exposes getList(filter) (backward compatibility), select(filter), list property (all entries), and getById(id). Automatically initializes DOs via PfCaches.initializeBaseDO() after each select to hydrate lazy-loaded fields. The dOClass property exposes the entity class. Enables scripts to interact with any domain entity through a uniform interface without direct BaseDao exposure.
Git History
868d6abb7 2025 -> 2026
63081666f Source file headers: 2024-> 2025.
22ccc4877 WIP: Scripting
4c8365b88 Kotlin scripting refactored (All tests OK)
7798dac85 Migration stuff in progress... (all tests of all packages: OK).
b6092df09 Copyright 2023 -> 2024
ab45d51fa Copyright 2001-2022 -> 2001-2023.
5f7ef41b8 Copyright 2021 -> 2022
ceb63e8a1 Source code header: (C) 2001-2021.
b41f6359d Liquidity: wip: support of base date in past.
7c79f1922 Copyright of source header -> 2020.
83b6d14be Soruce file headers fixed.
9456bbb6c WIP: Month -> 1-based Integer in Buchungssatz*, EmployeeSalary*, Report*, VacationServiceImpl, AccountingReccord* and MonthlyEmployeeFilter.
32f634b88 Optimize imports
dd5ca38ac CopyRight of all java file-header updated or created.
9ebb88522 Initial commit