Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crud location #3

Merged
merged 5 commits into from
Feb 27, 2024
Merged

Crud location #3

merged 5 commits into from
Feb 27, 2024

Conversation

angelbn01
Copy link
Contributor

Created the class for the location objects that're going to be used to specify the specific location of a Shelter

@elskater98
Copy link
Contributor

elskater98 commented Feb 24, 2024

Hi, @angelbn01 pay attention when you use the annotations NotBlank and NotNull;

In Hibernate, @notblank is typically used to validate that a String field is not null and has some non-whitespace characters. It's primarily intended for String fields, and it won't directly work for integer fields.
However, for validating integer fields, you can use other validation annotations such as NotNull, Min, Max, etc., depending on your specific validation requirements.

@angelbn01
Copy link
Contributor Author

Changed also the type Int to Long in the Id variable

@jorgechp jorgechp merged commit 84a1913 into main Feb 27, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants