Last change
on this file since 62bba0c was 62bba0c, checked in by ste08 <sjovanoska@…>, 3 months ago |
Report working, Wishlist partly working.
|
-
Property mode
set to
100644
|
File size:
608 bytes
|
Line | |
---|
1 | package com.example.skychasemk.model;
|
---|
2 |
|
---|
3 | import jakarta.persistence.*;
|
---|
4 | import lombok.Getter;
|
---|
5 | import lombok.Setter;
|
---|
6 | import org.hibernate.annotations.Immutable;
|
---|
7 |
|
---|
8 | import java.time.LocalDate;
|
---|
9 | @Setter
|
---|
10 | @Getter
|
---|
11 | @Entity
|
---|
12 | @Table(name="topmonhtlyreport")
|
---|
13 | @IdClass(TopMonthlyReportId.class) // Define composite key
|
---|
14 |
|
---|
15 | public class TopMonthlyReport {
|
---|
16 | // Getters and Setters
|
---|
17 | @Id
|
---|
18 | @Column(name = "month")
|
---|
19 | private LocalDate month;
|
---|
20 | @Id
|
---|
21 | @Column(name = "category")
|
---|
22 | private String category;
|
---|
23 | @Id
|
---|
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.