How gregtech87/wigelltravels works
Wigell Travels is a Spring travel-booking API. Users browse destinations and create or update trips; administrators manage customers, destinations, and trips, and can request currency conversion. Controllers delegate to domain services, which handle customer, address, destination, and trip operations through repositories and JPA entities. The source index supports service-to-repository references, while the excerpts show controller calls and entity relationships. Database configuration and runtime wiring were not sampled, so persistence and security connections are not drawn.
Main entry points: TripServiceImpl.java Trip service · TravelControllerAdmin.java Admin API · CustomerServiceImpl.java Customer service · DestinationServiceImpl.java Destination service
Components 20
API
Domain services
- Customer service
src/main/java/com/greger/wigelltravels/service/CustomerServiceImpl.java - Address service
src/main/java/com/greger/wigelltravels/service/AddressServiceImpl.java - Destination service
src/main/java/com/greger/wigelltravels/service/DestinationServiceImpl.java - Trip service
src/main/java/com/greger/wigelltravels/service/TripServiceImpl.java - Currency conversion
src/main/java/com/greger/wigelltravels/CurrencyConverter.java
Travel data
- Address repository
src/main/java/com/greger/wigelltravels/dao/AddressRepository.java - Customer repository
src/main/java/com/greger/wigelltravels/dao/CustomerRepository.java - Destination repository
src/main/java/com/greger/wigelltravels/dao/DestinationRepository.java - Trip repository
src/main/java/com/greger/wigelltravels/dao/TripRepository.java - Address model
src/main/java/com/greger/wigelltravels/entity/Address.java - Customer model
src/main/java/com/greger/wigelltravels/entity/Customer.java - Destination model
src/main/java/com/greger/wigelltravels/entity/Destination.java - Trip model
src/main/java/com/greger/wigelltravels/entity/Trip.java - Trip join mapping
src/main/java/com/greger/wigelltravels/entity/CustomTripJoinTable.java
Runtime support
- Security config
src/main/java/com/greger/wigelltravels/securtiy/SecurityConfig.java - Application entry
src/main/java/com/greger/wigelltravels/WigellTravelsApplication.java
Other components
- Traveler
- Administrator
Connections 23
- Traveler → User API: requests
src/main/java/com/greger/wigelltravels/controller/TravelControllerUser.java - Administrator → Admin API: requests
src/main/java/com/greger/wigelltravels/controller/TravelControllerAdmin.java - User API → Trip service: delegates trips
src/main/java/com/greger/wigelltravels/controller/TravelControllerUser.java - User API → Destination service: lists destinations
src/main/java/com/greger/wigelltravels/controller/TravelControllerUser.java - Admin API → Customer service: manages customers
src/main/java/com/greger/wigelltravels/controller/TravelControllerAdmin.java - Admin API → Destination service: manages destinations
src/main/java/com/greger/wigelltravels/controller/TravelControllerAdmin.java - Admin API → Trip service: manages trips
src/main/java/com/greger/wigelltravels/controller/TravelControllerAdmin.java - Admin API → Currency conversion: converts currency
src/main/java/com/greger/wigelltravels/controller/TravelControllerAdmin.java - Address service → Address repository: uses
src/main/java/com/greger/wigelltravels/service/AddressServiceImpl.java - Customer service → Customer repository: uses
src/main/java/com/greger/wigelltravels/service/CustomerServiceImpl.java - Customer service → Address service: uses
src/main/java/com/greger/wigelltravels/service/CustomerServiceImpl.java - Customer service → Trip service: uses
src/main/java/com/greger/wigelltravels/service/CustomerServiceImpl.java - Destination service → Destination repository: uses
src/main/java/com/greger/wigelltravels/service/DestinationServiceImpl.java - Trip service → Trip repository: uses
src/main/java/com/greger/wigelltravels/service/TripServiceImpl.java - Trip service → Destination service: uses
src/main/java/com/greger/wigelltravels/service/TripServiceImpl.java - Trip service → Currency conversion: updates prices
src/main/java/com/greger/wigelltravels/service/TripServiceImpl.java - Address repository → Address model: persists
src/main/java/com/greger/wigelltravels/dao/AddressRepository.java - Customer repository → Customer model: persists
src/main/java/com/greger/wigelltravels/dao/CustomerRepository.java - Destination repository → Destination model: persists
src/main/java/com/greger/wigelltravels/dao/DestinationRepository.java - Trip repository → Trip model: persists
src/main/java/com/greger/wigelltravels/dao/TripRepository.java - Customer model → Address model: references
src/main/java/com/greger/wigelltravels/entity/Customer.java - Customer model → Trip model: associates trips
src/main/java/com/greger/wigelltravels/entity/Customer.java - Trip model → Destination model: references
src/main/java/com/greger/wigelltravels/entity/Trip.java