source: src/main/java/com/example/skychasemk/model/TopMonthlyReport.java

Last change on this file was 62bba0c, checked in by ste08 <sjovanoska@…>, 4 months ago

Report working, Wishlist partly working.

  • Property mode set to 100644
File size: 608 bytes
RevLine 
[a70b5a4]1package com.example.skychasemk.model;
2
[62bba0c]3import jakarta.persistence.*;
4import lombok.Getter;
5import lombok.Setter;
6import org.hibernate.annotations.Immutable;
[a70b5a4]7
8import 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]15public 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.