This document explains the static weaving setup for JPA entities in the Fineract project.
Static weaving is a process that enhances JPA entities at build time to improve runtime performance. This is done using the org.eclipse.persistence.tools.weaving.jpa.StaticWeave which processes the compiled classes and applies the necessary bytecode transformations.
The static weaving is configured in static-weaving.gradle and applied to all Java projects that contain JPA entities.
build/classes/java/main).build/classes/java/main).src/main/javapersistence.xml file in src/main/resources/jpa/static-weaving/module/[module-name]/If you encounter issues with static weaving:
persistence.xml file exists in the correct location