chore: Migrate CaseManagementCPPDAOImpl from HibernateDaoSupport to SessionFactory#1621
chore: Migrate CaseManagementCPPDAOImpl from HibernateDaoSupport to SessionFactory#1621Copilot wants to merge 4 commits intomaintenancefrom
Conversation
…actory Co-authored-by: yingbull <8680161+yingbull@users.noreply.github.com>
Co-authored-by: yingbull <8680161+yingbull@users.noreply.github.com>
|
To generate Unit Tests for this PR, please click here. |
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Comment |
There was a problem hiding this comment.
Pull request overview
This PR migrates CaseManagementCPPDAOImpl from the deprecated HibernateDaoSupport to direct SessionFactory injection, preparing the codebase for Spring 6 compatibility as part of Epic #1110 (Jakarta EE Migration Preparation).
Changes:
- Removed
HibernateDaoSupportinheritance and replaced with@Autowired SessionFactoryfield injection - Migrated from
HibernateTemplateAPI to direct HibernateSessionAPI with typed queries - Updated query syntax from positional parameters (
?0) to named parameters (:demographicNo) - Added comprehensive JavaDoc documentation for the class and all methods
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Snapshot WarningsEnsure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice. Scanned FilesNone |
|
Unable to reassign; closing. Can be reopened by openosp. @kk-chung |
|
Unable to reassign; requesting close. Can be reopened by openosp. @kk-chung |
|
Retargeting from develop -> maintenance. |
Migrates
CaseManagementCPPDAOImplfrom deprecatedHibernateDaoSupportto directSessionFactoryinjection for Spring 6 compatibility.Changes
HibernateDaoSupportinheritance, added@Autowired SessionFactoryfield withgetSession()helpergetHibernateTemplate().find()with typedcreateQuery()using named parametersgetHibernateTemplate().saveOrUpdate()withgetSession().saveOrUpdate()Before:
After:
Part of Epic #1110 - Spring 6 / Jakarta EE migration preparation.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
jaspersoft.jfrog.io/usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --enable-native-access=ALL-UNNAMED -classpath /usr/share/apache-maven-3.9.12/boot/plexus-classworlds-2.9.0.jar -Dclassworlds.conf=/usr/share/apache-maven-3.9.12/bin/m2.conf -Dmaven.home=/usr/share/apache-maven-3.9.12 -Dlibrary.jansi.path=/usr/share/apache-maven-3.9.12/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/Open-O/Open-O org.codehaus.plexus.classworlds.launcher.Launcher clean compile -DskipTests -q(dns block)jitpack.io/usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --enable-native-access=ALL-UNNAMED -classpath /usr/share/apache-maven-3.9.12/boot/plexus-classworlds-2.9.0.jar -Dclassworlds.conf=/usr/share/apache-maven-3.9.12/bin/m2.conf -Dmaven.home=/usr/share/apache-maven-3.9.12 -Dlibrary.jansi.path=/usr/share/apache-maven-3.9.12/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/Open-O/Open-O org.codehaus.plexus.classworlds.launcher.Launcher clean compile -DskipTests -q(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.