new features

This commit is contained in:
dangerbaldo 2024-03-27 22:00:19 +01:00
parent 87ae9b761b
commit c61cb84a0f

View file

@ -134,7 +134,8 @@ class PetController {
public String processUpdateForm(@Valid Pet pet, BindingResult result, Owner owner, ModelMap model,
RedirectAttributes redirectAttributes) {
//new features...
//adding new features....
String petName = pet.getName();
// checking if the pet name already exist for the owner