adamsaghy commented on code in PR #6197:
URL: https://github.com/apache/fineract/pull/6197#discussion_r3925195286
##########
fineract-provider/src/main/java/org/apache/fineract/infrastructure/entityaccess/service/FineractEntityAccessReadServiceImpl.java:
##########
@@ -204,6 +204,19 @@ public FineractEntityRelationData mapRow(final ResultSet
rs, @SuppressWarnings("
@Override
public Collection<FineractEntityToEntityMappingData>
retrieveEntityToEntityMappings(Long mapId, Long fromId, Long toId) {
+ if (fromId == 0) {
+ final String fromEntityTypeSql = "SELECT er.from_entity_type FROM
m_entity_relation er WHERE er.id = ?";
Review Comment:
Can we use JQPL and repository here instead of native query?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]