Custom Annotation Validation using JPA Spring Boot example

Publié le: 01 janvier 1970
sur la chaîne: Java Puzzle
3,835
40

Spring Boot Rest Validation Example with Hibernate Bean Validation Constraints
📸    • Spring Boot Rest Validation Example with H...  
Learn Generics in 30 minutes
📸    • Generics in Java | Java Generics Tutorial ...  

:octocat: https://github.com/sawankarn/spring-b...

This video will show how to validate annotations in your JPA entity using Spring Boot with the help of the JPA annotation @Validated annotation.
Bean Validation is the de-facto standard for implementing validation logic in the Java ecosystem. It’s well integrated with Spring and Spring Boot.

Some of the most common validation annotations are:
🌍 @NotNull: to say that a field must not be null.
🌍 @NotEmpty: to say that a list field must not empty.
🌍 @NotBlank: to say that a string field must not be the empty string (i.e. it must have at least one character).
🌍 @Min and @Max: to say that a numerical field is only valid when it’s value is above or below a certain value.
🌍 @Pattern: to say that a string field is only valid when it matches a certain regular expression.
🌍 @Email: to say that a string field must be a valid email address.

In this video, we are going to discuss about to create custom annotation validation (@ValidUser) with Spring Boot Data JPA.


Sur cette page du site, vous pouvez voir la vidéo en ligne Custom Annotation Validation using JPA Spring Boot example durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Java Puzzle 01 janvier 1970, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 3,835 fois et il a aimé 40 téléspectateurs. Bon visionnage!