- Timestamp:
- 02/23/25 20:37:56 (3 months ago)
- Branches:
- master
- Children:
- fda671c
- Parents:
- de83113
- git-author:
- ste08 <sjovanoska@…> (02/23/25 20:37:23)
- git-committer:
- ste08 <sjovanoska@…> (02/23/25 20:37:56)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/skychasemk/model/TopMonthlyReport.java
rde83113 r62bba0c 1 1 package com.example.skychasemk.model; 2 2 3 import jakarta.persistence. Column;4 import jakarta.persistence.Entity;5 import jakarta.persistence.Id;6 import jakarta.persistence.Table;3 import jakarta.persistence.*; 4 import lombok.Getter; 5 import lombok.Setter; 6 import org.hibernate.annotations.Immutable; 7 7 8 8 import java.time.LocalDate; 9 9 @Setter 10 @Getter 10 11 @Entity 11 12 @Table(name="topmonhtlyreport") 13 @IdClass(TopMonthlyReportId.class) // Define composite key 14 12 15 public class TopMonthlyReport { 16 // Getters and Setters 13 17 @Id 14 18 @Column(name = "month") 15 19 private LocalDate month; 16 20 @Id 17 21 @Column(name = "category") 18 22 private String category; 19 23 @Id 20 24 @Column(name = "name") 21 25 private String name; 22 23 26 @Column(name = "count") 24 27 private int count; 25 28 26 // Getters and Setters27 public LocalDate getMonth() {28 return month;29 }30 31 public void setMonth(LocalDate month) {32 this.month = month;33 }34 35 public String getCategory() {36 return category;37 }38 39 public void setCategory(String category) {40 this.category = category;41 }42 43 public String getName() {44 return name;45 }46 47 public void setName(String name) {48 this.name = name;49 }50 51 public int getCount() {52 return count;53 }54 55 public void setCount(int count) {56 this.count = count;57 }58 29 }
Note:
See TracChangeset
for help on using the changeset viewer.