# Migrate Role Entity From HBM XML to JPA Annotations

**URL:** <https://talk.openelis-global.org/t/migrate-role-entity-from-hbm-xml-to-jpa-annotations/1701>\
**Category:** Uncategorized\
**Created:** [November 11, 2025, 12:30pm UTC](https://talk.openelis-global.org/t/migrate-role-entity-from-hbm-xml-to-jpa-annotations/1701 "2025-11-11T12:30:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leone\_Chirodza](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/leone_chirodza/32/994_2.png) [@Leone\_Chirodza](https://talk.openelis-global.org/u/Leone_Chirodza)\
**Post date:** [November 11, 2025, 12:30pm UTC](https://talk.openelis-global.org/t/migrate-role-entity-from-hbm-xml-to-jpa-annotations/1701/1 "2025-11-11T12:30:58Z")

</div>

Here are the error logs: [Migrate Role entity from HBM XML to JPA annotations #2280 - Pastebin.com](https://pastebin.com/Fn2pyYQc)

The errors show that all 2006 tests are failing with the same “ApplicationContext failure threshold (1) exceeded” error. This appears to be a Spring context initialization issue in the test environment.

mvn clean compile passes with no errors Test code compiles successfully Tests fail during Spring ApplicationContext loading

@mherman22 @Agaba_Derrick_Junior @reagan

---

<div class="post-metadata">

**Author:** ![Agaba\_Derrick\_Junior](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/agaba_derrick_junior/32/503_2.png) [@Agaba\_Derrick\_Junior](https://talk.openelis-global.org/u/Agaba_Derrick_Junior)\
**Post date:** [November 11, 2025, 12:49pm UTC](https://talk.openelis-global.org/t/migrate-role-entity-from-hbm-xml-to-jpa-annotations/1701/2 "2025-11-11T12:49:33Z")

</div>

@Leone_Chirodza what happens when you skip the tests with mvn clean install -Dskip Tests? does the code compile without errors?

what happens when you run `mvn -Dtest=BaseTestConfigTest test` do we have any tests that fail first ?

---

<div class="post-metadata">

**Author:** ![Leone\_Chirodza](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/leone_chirodza/32/994_2.png) [@Leone\_Chirodza](https://talk.openelis-global.org/u/Leone_Chirodza)\
**Post date:** [November 12, 2025, 1:16am UTC](https://talk.openelis-global.org/t/migrate-role-entity-from-hbm-xml-to-jpa-annotations/1701/3 "2025-11-12T01:16:36Z")

</div>

Thanks @Agaba_Derrick_Junior for the guidance

`mvn clean install -DskipTests` — **BUILD SUCCESS** (WAR built, no errors)  
`mvn -Dtest=BaseTestConfigTest test` — **BUILD SUCCESS** (tests skipped as configured)

@reagan @Moses_Mutesasira @mherman22
