This repository includes some validation types
Note for reader : Please ignore UI for now:) I am following Spring 6 , Spring Boot3 and Hibernate course on Udemy. I will also improve myself in UI:)
- @NotNull When we use this annotation, if the variable we are using with this annotiaton is null, it sends us a warning message.
-
@Min When we use this annotiation, if the variable we are using with this annotiation is lower than we determined, it sends us a warning message.
-
@Max When we use this annotiation, if the variable we are using with this annotiation is bigger than we determined, it sends us a warning message.
-
@Pattern When we use this annotiation, the input must match the pattern we gave on code. Otherwise, it will send us a warning message.
-
Custom Annotiation We can also create our own annotiations. For this,
This @annotiation class is an annotiation schema for us.
This class gives anootiation's class task and tell it what to do in code.