Skip to content

Migrate to OpenMRS Core 3.0.0-SNAPSHOT#708

Open
dkayiwa wants to merge 1 commit intomasterfrom
core-3.0-migration-v2
Open

Migrate to OpenMRS Core 3.0.0-SNAPSHOT#708
dkayiwa wants to merge 1 commit intomasterfrom
core-3.0-migration-v2

Conversation

@dkayiwa
Copy link
Member

@dkayiwa dkayiwa commented Mar 2, 2026

Key changes:

  • Bump module version to 4.0.0-SNAPSHOT
  • Upgrade Java from 8 to 21
  • javax.servlet -> jakarta.servlet namespace migration
  • org.apache.commons.lang -> org.apache.commons.lang3
  • Jackson 1.x (org.codehaus.jackson) -> Jackson 2.x (com.fasterxml.jackson)
  • Hibernate Criteria API -> JPA Criteria API in RestHelperServiceImpl
  • Spring 6: CommonsMultipartResolver -> StandardServletMultipartResolver
  • Spring 6: PathPatternParser compatibility
  • Hibernate 6: Cache API updates, Query API changes, strict lazy loading
  • Fix Core 3.0 API removals (Field.getAnswers, setStatus(int,String), etc.)
  • Update version patterns in resources/search handlers for Core 3.0
  • Fix test datasets for Core 3.0 schema changes (NOT NULL constraints)
  • Add -parameters compiler flag for Spring 6 parameter name resolution
  • Update CI matrix: Java 21 and 25

Description of what I changed

Issue I worked on

see https://issues.openmrs.org/browse/RESTWS-

Checklist: I completed these to help reviewers :)

  • My IDE is configured to follow the code style of this project.

    No? Unsure? -> configure your IDE, format the code and add the changes with git add . && git commit --amend

  • I have added tests to cover my changes. (If you refactored
    existing code that was well tested you do not have to add tests)

    No? -> write tests and add them to this commit git add . && git commit --amend

  • I ran mvn clean package right before creating this pull request and
    added all formatting changes to my commit.

    No? -> execute above command

  • All new and existing tests passed.

    No? -> figure out why and add the fix to your commit. It is your responsibility to make sure your code works.

  • My pull request is based on the latest changes of the master branch.

    No? Unsure? -> execute command git pull --rebase upstream master

Key changes:
- Bump module version to 4.0.0-SNAPSHOT
- Upgrade Java from 8 to 21
- javax.servlet -> jakarta.servlet namespace migration
- org.apache.commons.lang -> org.apache.commons.lang3
- Jackson 1.x (org.codehaus.jackson) -> Jackson 2.x (com.fasterxml.jackson)
- Hibernate Criteria API -> JPA Criteria API in RestHelperServiceImpl
- Spring 6: CommonsMultipartResolver -> StandardServletMultipartResolver
- Spring 6: PathPatternParser compatibility
- Hibernate 6: Cache API updates, Query API changes, strict lazy loading
- Fix Core 3.0 API removals (Field.getAnswers, setStatus(int,String), etc.)
- Update version patterns in resources/search handlers for Core 3.0
- Fix test datasets for Core 3.0 schema changes (NOT NULL constraints)
- Add -parameters compiler flag for Spring 6 parameter name resolution
- Update CI matrix: Java 21 and 25

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dkayiwa
Copy link
Member Author

dkayiwa commented Mar 2, 2026

The original pull request with comments was #702

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant