Skip to content

TRUNK-5842: ProgramWorkflow-Domain---Switching-from-Hibernate-Mapping #4932

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Isabirye1515
Copy link

@Isabirye1515 Isabirye1515 commented Feb 18, 2025

…ngs-to-Annotation

Description of what I changed

Issue I worked on

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

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

@ManojLL
Copy link
Contributor

ManojLL commented Feb 18, 2025

@Isabirye1515 Thanks for PR, please rename the PR title and add ticket ID

Comment on lines 64 to 66



Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this empty lines

@@ -271,7 +295,8 @@ public Integer getProgramWorkflowId() {
public void setProgramWorkflowId(Integer programWorkflowId) {
this.programWorkflowId = programWorkflowId;
}



Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this line

Comment on lines 50 to 53
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "program_workflow_id")
private Integer programWorkflowId;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use the existing ID property and configure sequence generation as in the XML mapping

private Program program;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add this line break

private Concept concept;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add this line break

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did you update the this test?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since annotation makes strict db persistance and the class i was extending the name property was nullable false and a field

@Isabirye1515 Isabirye1515 changed the title set:TRUNK-5842ProgramWorkflow-Domain---Switching-from-Hibernate-Mappi… TRUNK-5842: ProgramWorkflow-Domain---Switching-from-Hibernate-Mapping Feb 19, 2025
@Isabirye1515 Isabirye1515 deleted the TRUNK-5842 branch February 19, 2025 11:13
@Isabirye1515 Isabirye1515 restored the TRUNK-5842 branch February 19, 2025 11:15
@Isabirye1515 Isabirye1515 reopened this Feb 19, 2025
@dkayiwa
Copy link
Member

dkayiwa commented Feb 26, 2025

Can you look into the build failures?

Comment on lines -383 to -391
<program_workflow program_workflow_id="3" program_id="3" concept_id="1484" creator="6" date_created="2006-09-27 20:34:45.0" retired="false" uuid="cf8f2664-2700-102b-80cb-0017a47871b2"/>
<program_workflow program_workflow_id="4" program_id="4" concept_id="1484" creator="6" date_created="2006-09-27 20:35:03.0" retired="false" uuid="cf8f2934-2700-102b-80cb-0017a47871b2"/>
<program_workflow program_workflow_id="5" program_id="5" concept_id="1846" creator="1128" date_created="2007-03-12 21:48:00.0" retired="false" uuid="cf8f2ad8-2700-102b-80cb-0017a47871b2"/>
<program_workflow program_workflow_id="6" program_id="6" concept_id="1484" creator="1128" date_created="2007-03-28 10:11:39.0" retired="false" uuid="cf8f2c72-2700-102b-80cb-0017a47871b2"/>
<program_workflow program_workflow_id="7" program_id="6" concept_id="5272" creator="1128" date_created="2007-03-28 11:03:03.0" retired="false" uuid="cf8f2e16-2700-102b-80cb-0017a47871b2"/>
<program_workflow program_workflow_id="9" program_id="3" concept_id="3070" creator="1128" date_created="2007-05-03 09:35:38.0" retired="false" uuid="cf8f2fa6-2700-102b-80cb-0017a47871b2"/>
<program_workflow program_workflow_id="10" program_id="4" concept_id="1378" creator="1128" date_created="2007-05-03 10:05:42.0" retired="false" uuid="cf8f3140-2700-102b-80cb-0017a47871b2"/>
<program_workflow program_workflow_id="19" program_id="10" concept_id="1484" creator="15887" date_created="2007-10-29 22:31:52.0" retired="false" uuid="cf8f32da-2700-102b-80cb-0017a47871b2"/>
<program_workflow program_workflow_id="20" program_id="10" concept_id="3070" creator="6" date_created="2008-05-18 18:15:19.0" retired="false" uuid="25bce7b8-bddf-440a-b939-a9cc11f03a27"/>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure UUID uniqueness, consistent date formats, and proper retired status handling.

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.

4 participants