Skip to content

Instantly share code, notes, and snippets.

@eliasnogueira
Created December 3, 2023 16:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eliasnogueira/6caccba6582ce1e8264663fd59bfaa40 to your computer and use it in GitHub Desktop.
Save eliasnogueira/6caccba6582ce1e8264663fd59bfaa40 to your computer and use it in GitHub Desktop.
Code snippet of the Simulation entity
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