Created
December 3, 2023 16:38
-
-
Save eliasnogueira/6caccba6582ce1e8264663fd59bfaa40 to your computer and use it in GitHub Desktop.
Code snippet of the Simulation entity
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Simulation { | |
@NotNull(message = "Amount cannot be empty") | |
@Min(value = 1000, message = "Amount must be equal or greater than $ 1.000") | |
@Max(value = 40000, message = "Amount must be equal or less than than $ 40.000") | |
private BigDecimal amount; | |
@NotNull(message = "Installments cannot be empty") | |
@Min(value = 2, message = "Installments must be equal or greater than 2") | |
@Max(value = 48, message = "Installments must be equal or less than 48") | |
private Integer installments; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The full class can be found at https://github.com/eliasnogueira/credit-api/blob/manage-data/src/main/java/com/eliasnogueira/credit/entity/Simulation.java