File tree Expand file tree Collapse file tree
apps/commerce-api/src/main/java/com/loopers/domain/ranking Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ package com .loopers .domain .ranking ;
2+
3+ import com .loopers .infrastructure .converter .YearMonthAttributeConverter ;
4+ import jakarta .persistence .*;
5+ import lombok .Getter ;
6+ import lombok .NoArgsConstructor ;
7+
8+ import java .time .YearMonth ;
9+
10+ @ Entity
11+ @ Getter
12+ @ Table (name = "mv_product_rank_monthly" )
13+ @ NoArgsConstructor (access = lombok .AccessLevel .PROTECTED )
14+ public class MonthlyRanking {
15+
16+ @ Id
17+ @ GeneratedValue (strategy = GenerationType .IDENTITY )
18+ private Long id ;
19+
20+ @ Column (name = "monthly_rank" )
21+ private int rank ;
22+
23+ private Long productId ;
24+
25+ private double score ;
26+
27+ @ Convert (converter = YearMonthAttributeConverter .class )
28+ @ Column (name = "month_period" )
29+ private YearMonth monthPeriod ;
30+ }
You can’t perform that action at this time.
0 commit comments