forked from digma-ai/otel-sample-app-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request
Description
This issue tracks the changes needed to fix the duplicate pet ID problem that causes IllegalStateException errors.
Problem:
- The application currently allows pets with duplicate IDs to be added to an owner
- This causes IllegalStateException when trying to retrieve pets
Solution:
- Added validation in Owner.addPet() to prevent duplicate Pet IDs
- Added a unique constraint on the pet_id column in the database
- Added error handling for duplicate ID scenarios
Related PR: #57
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request