source:
src/main/java/com/example/skychasemk/model/TopMonthlyReport.java
Last change on this file was 62bba0c, checked in by , 4 months ago | |
---|---|
|
|
File size: 608 bytes |
Rev | Line | |
---|---|---|
[a70b5a4] | 1 | package com.example.skychasemk.model; |
2 | ||
[62bba0c] | 3 | import jakarta.persistence.*; |
4 | import lombok.Getter; | |
5 | import lombok.Setter; | |
6 | import org.hibernate.annotations.Immutable; | |
[a70b5a4] | 7 | |
8 | import java.time.LocalDate; | |
[62bba0c] | 9 | @Setter |
10 | @Getter | |
[a70b5a4] | 11 | @Entity |
12 | @Table(name="topmonhtlyreport") | |
[62bba0c] | 13 | @IdClass(TopMonthlyReportId.class) // Define composite key |
14 | ||
[a70b5a4] | 15 | public class TopMonthlyReport { |
[62bba0c] | 16 | // Getters and Setters |
[a70b5a4] | 17 | @Id |
18 | @Column(name = "month") | |
19 | private LocalDate month; | |
[62bba0c] | 20 | @Id |
[a70b5a4] | 21 | @Column(name = "category") |
22 | private String category; | |
[62bba0c] | 23 | @Id |
[a70b5a4] | 24 | @Column(name = "name") |
25 | private String name; | |
26 | @Column(name = "count") | |
27 | private int count; | |
28 | ||
29 | } |
Note:
See TracBrowser
for help on using the repository browser.