-
Notifications
You must be signed in to change notification settings - Fork 454
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#1149 - [Search][Recommendation] Introduce Kafka Stream to aggregate …
…all product data. -implement kafka stream application to capture all changes related to product
- Loading branch information
Phuoc Nguyen
committed
Oct 28, 2024
1 parent
6a0a802
commit d925ea2
Showing
18 changed files
with
439 additions
and
204 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
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
15 changes: 0 additions & 15 deletions
15
recommendation/src/main/java/com/yas/recommendation/dto/BrandDTO.java
This file was deleted.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
recommendation/src/main/java/com/yas/recommendation/dto/BrandDto.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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.yas.recommendation.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
/** | ||
* BrandDto is a Data Transfer Object (DTO) that represents brand information. | ||
* It extends {@link BaseDto} to inherit basic entity properties like ID and name, | ||
* along with metadata fields. This class is annotated for JSON serialization, | ||
* ensuring only non-null properties are included and unknown properties are ignored. | ||
*/ | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
@Getter | ||
@Setter | ||
@AllArgsConstructor | ||
public class BrandDto extends BaseDto { | ||
} |
18 changes: 0 additions & 18 deletions
18
recommendation/src/main/java/com/yas/recommendation/dto/CategoryDTO.java
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
recommendation/src/main/java/com/yas/recommendation/dto/CategoryDto.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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.yas.recommendation.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
/** | ||
* CategoryDto is a Data Transfer Object (DTO) that represents category information. | ||
* It extends {@link BaseDto} to inherit basic entity properties like ID and name, | ||
* along with metadata fields for tracking changes. This class is annotated for JSON | ||
* serialization, ensuring only non-null properties are included and unknown properties | ||
* are ignored during deserialization. | ||
*/ | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
@Getter | ||
@Setter | ||
@AllArgsConstructor | ||
public class CategoryDto extends BaseDto { | ||
public CategoryDto(String op, Long ts, Long id, String name) { | ||
super(op, ts, id, name); | ||
} | ||
} |
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
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
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
Oops, something went wrong.