-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
float(4) postgresql data type should be mapped to Float, as earlier it was mapped to Double some extra precision values are added and EqualsAndHashCode is always failing as a result. Now the Integration Test case should also pass Refer : https://zontroy.com/postgresql-to-java-type-mapping
- Loading branch information
1 parent
b8c4485
commit fc217a6
Showing
5 changed files
with
11 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 6 additions & 7 deletions
13
src/main/java/com/learning/mfscreener/models/NAVDataDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
/* Licensed under Apache-2.0 2021-2022. */ | ||
/* Licensed under Apache-2.0 2021-2024. */ | ||
package com.learning.mfscreener.models; | ||
|
||
import com.fasterxml.jackson.annotation.JsonFormat; | ||
import java.io.Serializable; | ||
import java.time.LocalDate; | ||
import lombok.With; | ||
|
||
public record NAVDataDTO( | ||
@JsonFormat(pattern = "dd-MM-yyyy", shape = JsonFormat.Shape.STRING) LocalDate date, Double nav, Long schemeId) | ||
implements Serializable { | ||
public NAVDataDTO setSchemeId(Long schemeCode) { | ||
return new NAVDataDTO(date(), nav(), schemeCode); | ||
} | ||
} | ||
@JsonFormat(pattern = "dd-MM-yyyy", shape = JsonFormat.Shape.STRING) LocalDate date, | ||
Float nav, | ||
@With Long schemeId) | ||
implements Serializable {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters