update code added
This commit is contained in:
@@ -7,12 +7,14 @@ import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.GeneratedValue;
|
||||
import jakarta.persistence.GenerationType;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
import lombok.ToString;
|
||||
|
||||
@Entity
|
||||
@Table(name="bbps_inbound_log_trace")
|
||||
@Getter @Setter @NoArgsConstructor @ToString
|
||||
public class InboundTraceLog {
|
||||
|
||||
|
||||
@@ -7,52 +7,58 @@ import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.GeneratedValue;
|
||||
import jakarta.persistence.GenerationType;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
import lombok.ToString;
|
||||
|
||||
@Entity
|
||||
@Getter @Setter @NoArgsConstructor @ToString
|
||||
@Table(name = "bbps_outbound_log_trace")
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
@ToString
|
||||
public class OutboundTraceLog {
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Long id;
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Long id;
|
||||
|
||||
// 🔹 Linking fields
|
||||
private String requestId; // same as inbound ka requestId
|
||||
private String txnId; // same txnId for full trace
|
||||
// 🔹 Linking fields
|
||||
private String requestId; // same as inbound ka requestId
|
||||
private String txnId; // same txnId for full trace
|
||||
|
||||
// 🔹 API / endpoint info
|
||||
private String apiName; // e.g. fetchBillerData
|
||||
private String endpointUrl; // full URL of external API
|
||||
private String httpMethod; // GET / POST
|
||||
// 🔹 API / endpoint info
|
||||
private String apiName; // e.g. fetchBillerData
|
||||
private String endpointUrl; // full URL of external API
|
||||
private String httpMethod; // GET / POST
|
||||
|
||||
// 🔹 Request/Response payloads
|
||||
@Column(columnDefinition = "TEXT")
|
||||
private String requestPayload; // jo tumne bheja external ko
|
||||
@Column(columnDefinition = "TEXT")
|
||||
private String responsePayload; // jo external ne bheja
|
||||
// 🔹 Request/Response payloads
|
||||
@Column(columnDefinition = "TEXT")
|
||||
private String requestPayload; // jo tumne bheja external ko
|
||||
@Column(columnDefinition = "TEXT")
|
||||
private String responsePayload; // jo external ne bheja
|
||||
|
||||
// 🔹 Response/status
|
||||
private String responseCode; // HTTP status code (200, 500, etc.)
|
||||
private String status; // SUCCESS / FAILED
|
||||
private LocalDateTime sendTime; // jab request gayi
|
||||
private LocalDateTime responseReceiveTime; // jab response aaya
|
||||
private LocalDateTime createdAt = LocalDateTime.now();
|
||||
// 🔹 Response/status
|
||||
private String responseCode; // HTTP status code (200, 500, etc.)
|
||||
private String status; // SUCCESS / FAILED
|
||||
private LocalDateTime sendTime; // jab request gayi
|
||||
private LocalDateTime responseReceiveTime; // jab response aaya
|
||||
private LocalDateTime createdAt = LocalDateTime.now();
|
||||
|
||||
@Column(length = 255)
|
||||
private String remark;
|
||||
public OutboundTraceLog(String txnId, String requestId, String apiName,
|
||||
String endpointUrl, String httpMethod, String requestPayload) {
|
||||
this.txnId = txnId;
|
||||
this.requestId = requestId;
|
||||
this.apiName = apiName;
|
||||
this.endpointUrl = endpointUrl;
|
||||
this.httpMethod = httpMethod;
|
||||
this.requestPayload = requestPayload;
|
||||
this.sendTime = LocalDateTime.now();
|
||||
this.createdAt = LocalDateTime.now();
|
||||
}
|
||||
@Column(length = 255)
|
||||
private String remark;
|
||||
|
||||
public OutboundTraceLog(String txnId, String requestId, String apiName, String endpointUrl, String httpMethod,
|
||||
String requestPayload) {
|
||||
this.txnId = txnId;
|
||||
this.requestId = requestId;
|
||||
this.apiName = apiName;
|
||||
this.endpointUrl = endpointUrl;
|
||||
this.httpMethod = httpMethod;
|
||||
this.requestPayload = requestPayload;
|
||||
this.sendTime = LocalDateTime.now();
|
||||
this.createdAt = LocalDateTime.now();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,9 +22,9 @@ swagger.server.description=Local Development Server
|
||||
#spring.datasource.url=jdbc:postgresql://localhost:5432/devdbuat
|
||||
spring.datasource.url=jdbc:postgresql://localhost:5432/bbps_enhanced
|
||||
spring.datasource.username=postgres
|
||||
#spring.datasource.password=UAT@DB_2025
|
||||
spring.datasource.password=UAT@DB_2025
|
||||
|
||||
spring.datasource.password=himanshu@123
|
||||
#spring.datasource.password=himanshu@123
|
||||
spring.datasource.driver-class-name=org.postgresql.Driver
|
||||
spring.datasource.type=com.zaxxer.hikari.HikariDataSource
|
||||
|
||||
|
||||
Reference in New Issue
Block a user