FINERACT-2103: refactor boilerplate code under portfolio package using Lombok annotations.
This commit is contained in:
+1
-1
@@ -198,7 +198,7 @@ public class JournalEntryReadPlatformServiceImpl implements JournalEntryReadPlat
|
||||
final Long noteId = JdbcSupport.getLong(rs, "noteId");
|
||||
if (noteId != null) {
|
||||
final String note = rs.getString("transactionNote");
|
||||
noteData = new NoteData(noteId, null, null, null, null, null, null, null, note, null, null, null, null, null, null);
|
||||
noteData = NoteData.builder().id(noteId).note(note).build();
|
||||
}
|
||||
Long transaction = null;
|
||||
if (entityType != null && transactionId != null) {
|
||||
|
||||
+6
-5
@@ -83,10 +83,10 @@ public class ClientFamilyMembersReadPlatformServiceImpl implements ClientFamilyM
|
||||
final String profession = rs.getString("profession");
|
||||
final long professionId = rs.getLong("professionId");
|
||||
|
||||
return ClientFamilyMembersData.instance(id, clientId, firstName, middleName, lastName, qualification, mobileNumber, age,
|
||||
isDependent, relationship, relationshipId, maritalStatus, maritalStatusId, gender, genderId, dateOfBirth, profession,
|
||||
professionId);
|
||||
|
||||
return ClientFamilyMembersData.builder().id(id).clientId(clientId).firstName(firstName).middleName(middleName)
|
||||
.lastName(lastName).qualification(qualification).mobileNumber(mobileNumber).age(age).isDependent(isDependent)
|
||||
.relationship(relationship).relationshipId(relationshipId).maritalStatus(maritalStatus).maritalStatusId(maritalStatusId)
|
||||
.gender(gender).genderId(genderId).dateOfBirth(dateOfBirth).profession(profession).professionId(professionId).build();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -126,7 +126,8 @@ public class ClientFamilyMembersReadPlatformServiceImpl implements ClientFamilyM
|
||||
final List<CodeValueData> professionOptions = new ArrayList<>(
|
||||
this.codeValueReadPlatformService.retrieveCodeValuesByCode("PROFESSION"));
|
||||
|
||||
return ClientFamilyMembersData.templateInstance(relationshipOptions, genderOptions, maritalStatusOptions, professionOptions);
|
||||
return ClientFamilyMembersData.builder().relationshipIdOptions(relationshipOptions).genderIdOptions(genderOptions)
|
||||
.maritalStatusIdOptions(maritalStatusOptions).professionIdOptions(professionOptions).build();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+4
-2
@@ -74,8 +74,10 @@ public class NoteReadPlatformServiceImpl implements NoteReadPlatformService {
|
||||
final String updatedByUsername = rs.getString("modifiedBy");
|
||||
final OffsetDateTime createdDate = createdDateUtc != null ? createdDateUtc : createdDateLocal;
|
||||
final OffsetDateTime lastModifiedDate = lastModifiedDateUtc != null ? lastModifiedDateUtc : lastModifiedDateLocal;
|
||||
return new NoteData(id, clientId, groupId, loanId, transactionId, null, null, noteType, note, createdDate, createdById,
|
||||
createdByUsername, lastModifiedDate, lastModifiedById, updatedByUsername);
|
||||
|
||||
return NoteData.builder().id(id).clientId(clientId).groupId(groupId).loanId(loanId).loanTransactionId(transactionId)
|
||||
.noteType(noteType).note(note).createdOn(createdDate).createdById(createdById).createdByUsername(createdByUsername)
|
||||
.updatedOn(lastModifiedDate).updatedById(lastModifiedById).updatedByUsername(updatedByUsername).build();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user