EN · DE · RU · FR · ES

#522: ContractDao.java

projectforge-business/src/main/java/org/projectforge/business/orga/ContractDao.java Type: Java DAO · Package: org.projectforge.business.orga · Source: projectforge-business/src/main/java/org/projectforge/business/orga/ContractDao.java 143 lines · 93 code · 39 comments · 11 blank
Java DAO implementing ContractDao.

Annotations

@Service, @Override, @Override, @Override, @Override

Methods

ReturnMethodParameters
KaiReinhardk.reinhard@micromata.de
publicContractDao
booleanisAutocompletionPropertyEnabledString property
Listselectfinal BaseSearchFilter filter
newContractFilterfilter
newQueryFiltermyFilter
returnselectqueryFilter
selectmindate
voidonInsertOrModifyfinal ContractDO obj, final OperationType operationType
newUserException"validation.required.valueNotPresent", new MessageParam("legalAffaires.contract.number", MessageParamType.I18N_KEY
newUserException"legalAffaires.contract.error.numberAlreadyExists"
IntegergetNextNumberfinal ContractDO contract
ContractDOnewInstance
newContractDO

Architecture Analysis

Resides in projectforge-business, the core module containing domain logic, services, and persistence. Typically annotated with @Service or @Component, managed by the Spring IoC container with dependency injection.

Git History

CommitWhat changed
868d6abb752025 -> 2026
63081666f6Source file headers: 2024-> 2025.
5f9bbfbd37Fix typos in projectforge-business directory
5989b32fdbBaseDao: mechanism of onChangeLister refactored.
1b50060c3aBaseDao: renamed: get -> find, save -> insert, getList -> select, load -> select
87aaf6a5a5Migration stuff in progress... BaseDao refactored (not yet finished) internal* methods renamed.
3aeda5ef5aBig change: all save|update|...InTrans renamed (InTrans removed). PfPesistenceContext as param not needed anymore (ThreadLocal is used instead). (all tests of all packages: OK).
b095e6f7d1!!!!! Big change of Transaction handling: Re-uses PfPersistenceContext as much as possible (not yet finished). Tests doesn't yet run.
5bafe79416@Repository -> @Service. @Transactional-Annotations removed.
4e52742455Migration stuff in progress...
b7b459e739Migration stuff in progress...
06828f4908Migration stuff in progress...
b6092df092Copyright 2023 -> 2024
ab45d51fa4Copyright 2001-2022 -> 2001-2023.
5f7ef41b8cCopyright 2021 -> 2022
db3b02da77UserException moved from business to common package (AccesssException affected). UserException will now be returned as Toast for Rest clients on default. FileSizeChecker WIP.
ceb63e8a1bSource code header: (C) 2001-2021.
7c3acd42c6React: Contract.
632916ad68SQLHelper.kt: Add getYears method that takes Objects
7c79f1922cCopyright of source header -> 2020.
b66248faebHeavy WIP:JPA
8f96c5a56dHeavy WIP: Remove @Transaction annotations....
c04cc0193fHeavy WIP: session -> em
76a8fb69d7Hibernate.Restrictions -> PF.QueryFilter
000ca723d8Remove pointless boolean expressions (business)
fe5a7c9828Heavy WIP: NamedQueries everywhere... Plugin crm removed.
510e8d7969Heavy WIP: NamedQueries everywhere...
dd5ca38acdCopyRight of all java file-header updated or created.
ed4585f760Security fix: Only enabled properties of BaseDao are now available for autocompletion due to security reasons. TimesheetDao returns now also all locations for an user for blank search string.
c2b3dd647eUserException.field -> causedByField.
dc4e305868Validation: show UserException as ValidationError in Frontend. UserException supports now optional affected field.
a5bbdca6aaChange logger to slf4j
f979e8a429MGC-UPDATE: Update auf Version 3.0.0-SNAPSHOT
9ebb885224Initial commit