vidakovic commented on code in PR #5773:
URL: https://github.com/apache/fineract/pull/5773#discussion_r3257734513
##########
fineract-investor/src/main/java/org/apache/fineract/investor/service/InvestorCommandValidationService.java:
##########
@@ -18,22 +18,21 @@
*/
package org.apache.fineract.investor.service;
+import jakarta.validation.ConstraintViolationException;
+import jakarta.validation.Validator;
import lombok.RequiredArgsConstructor;
-import org.apache.fineract.commands.annotation.CommandType;
-import org.apache.fineract.commands.handler.NewCommandSourceHandler;
-import org.apache.fineract.infrastructure.core.api.JsonCommand;
-import org.apache.fineract.infrastructure.core.data.CommandProcessingResult;
-import org.springframework.stereotype.Service;
+import org.springframework.stereotype.Component;
+@Component
@RequiredArgsConstructor
-@Service
-@CommandType(entity = "ASSET_OWNER_TRANSACTION", action = "CANCEL")
-public class CancelLoanFromExternalAssetOwnerHandler implements
NewCommandSourceHandler {
+public class InvestorCommandValidationService {
Review Comment:
This should be covered by Jakarta validation? Why do we need this?
--
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]