Skip to content

TRUNK-6279: Migrate PersonName from Hibernate Mapping XML to JPA annotations #4928

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

dulmik2003
Copy link

@dulmik2003 dulmik2003 commented Feb 16, 2025

Update the PersonName class with JPA Caching

Upadate the OrderServiceTest class with annotated class

Modify the PersonName entity class with JPA annotations

Remove the PersonName.hbm.xml file
@dulmik2003 dulmik2003 marked this pull request as ready for review February 16, 2025 13:03
@@ -54,7 +54,7 @@
<mapping resource="org/openmrs/api/db/hibernate/Person.hbm.xml" />
<mapping resource="org/openmrs/api/db/hibernate/PersonAttribute.hbm.xml" />
<mapping resource="org/openmrs/api/db/hibernate/PersonMergeLog.hbm.xml" />
<mapping resource="org/openmrs/api/db/hibernate/PersonName.hbm.xml" />
<!-- <mapping resource="org/openmrs/api/db/hibernate/PersonName.hbm.xml" />-->
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 commented code

Copy link
Author

Choose a reason for hiding this comment

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

alright. I fixed It.

Copy link
Contributor

@ManojLL ManojLL left a comment

Choose a reason for hiding this comment

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

can you fix the build failure?

@@ -11,6 +11,15 @@

import static org.apache.commons.lang3.StringUtils.defaultString;

import javax.persistence.Cacheable;
Copy link
Contributor

Choose a reason for hiding this comment

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

remove unused imports

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.

2 participants