File tree Expand file tree Collapse file tree 7 files changed +15
-24
lines changed
emergency-service/src/main/resources
java/com/swyth/hospitalservice/entity
frontend/realtime-emergency-app/src/app/components/booking-information Expand file tree Collapse file tree 7 files changed +15
-24
lines changed Original file line number Diff line number Diff line change @@ -46,10 +46,13 @@ spring:
4646 producer :
4747 retries : 5 # Retries on transient errors
4848 bootstrap-servers : ' kafka:9092'
49- acks : all
50- retry.backoff.ms : 300 # Wait before retrying
51- reconnect.backoff.ms : 50 # Delay before reconnecting to Kafka
52- linger.ms : 5 # Reduce latency impact
49+ properties :
50+ enable.idempotence : true
51+ max.in.flight.requests.per.connection : 5
52+ acks : all
53+ retry.backoff.ms : 300 # Wait before retrying
54+ reconnect.backoff.ms : 50 # Delay before reconnecting to Kafka
55+ linger.ms : 5 # Reduce latency impact
5356 retry :
5457 topic :
5558 backoff :
Original file line number Diff line number Diff line change 149149 <path >
150150 <groupId >org.projectlombok</groupId >
151151 <artifactId >lombok</artifactId >
152+ <version >1.18.36</version >
152153 </path >
153154 </annotationProcessorPaths >
154155 </configuration >
Original file line number Diff line number Diff line change 33import jakarta .persistence .*;
44import lombok .AllArgsConstructor ;
55import lombok .Data ;
6+ import lombok .EqualsAndHashCode ;
67import lombok .NoArgsConstructor ;
78
89import java .util .HashSet ;
1314@ Data
1415@ NoArgsConstructor
1516@ AllArgsConstructor
17+ @ EqualsAndHashCode (of = "id" )
1618public class Hospital {
1719 @ Id
1820 @ GeneratedValue (strategy = GenerationType .IDENTITY )
@@ -41,17 +43,4 @@ public static class SpecializationAvailability {
4143 private String name ;
4244 private int bedsAvailable ;
4345 }
44-
45- @ Override
46- public boolean equals (Object o ) {
47- if (this == o ) return true ;
48- if (o == null || getClass () != o .getClass ()) return false ;
49- Hospital hospital = (Hospital ) o ;
50- return Objects .equals (id , hospital .id );
51- }
52-
53- @ Override
54- public int hashCode () {
55- return Objects .hashCode (id );
56- }
5746}
Original file line number Diff line number Diff line change 33import jakarta .persistence .*;
44import lombok .AllArgsConstructor ;
55import lombok .Data ;
6+ import lombok .EqualsAndHashCode ;
67import lombok .NoArgsConstructor ;
78
89@ Entity
910@ Table (name = "hospital_bed_availability" )
1011@ Data
1112@ NoArgsConstructor
1213@ AllArgsConstructor
14+ @ EqualsAndHashCode (of = {"id" })
1315public class HospitalBedAvailability {
1416
1517 @ EmbeddedId
Original file line number Diff line number Diff line change 11package com .swyth .hospitalservice .entity ;
22
33import jakarta .persistence .*;
4- import lombok .AllArgsConstructor ;
5- import lombok .Data ;
6- import lombok .Getter ;
7- import lombok .NoArgsConstructor ;
4+ import lombok .*;
85
96import java .util .HashSet ;
107import java .util .Set ;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ spring:
2525 config :
2626 discovery :
2727 enabled : true
28- enabled : false # Switch to false if you add config server
28+ enabled : false # Switch to true if you add config server
2929 datasource :
3030 url : jdbc:postgresql://localhost:5432/postgres
3131 username : postgres
Original file line number Diff line number Diff line change 7171 <!-- Action Buttons -->
7272 < div class ="actions ">
7373 < mat-card-actions >
74- < button mat-raised-button color ="primary " [disabled] ="bookingForm.invalid || isLoading "
75- (click) ="onReserveBed() ">
74+ < button mat-raised-button color ="primary " type ="submit " [disabled] ="bookingForm.invalid || isLoading ">
7675 Confirm Reservation
7776 </ button >
7877 </ mat-card-actions >
You can’t perform that action at this time.
0 commit comments