main
Last change
on this file was ae042f4, checked in by andrejtodorovski <82031894+andrejtodorovski@…>, 23 months ago |
Configured spring security, changed spring version
|
-
Property mode
set to
100644
|
File size:
932 bytes
|
Line | |
---|
1 | package com.example.autopartz.model.views;
|
---|
2 |
|
---|
3 | import lombok.Getter;
|
---|
4 | import lombok.RequiredArgsConstructor;
|
---|
5 | import lombok.Setter;
|
---|
6 | import lombok.ToString;
|
---|
7 | import org.hibernate.annotations.Immutable;
|
---|
8 |
|
---|
9 | import javax.persistence.Entity;
|
---|
10 | import javax.persistence.Id;
|
---|
11 | import javax.persistence.IdClass;
|
---|
12 | import javax.persistence.Table;
|
---|
13 | import java.io.Serial;
|
---|
14 | import java.io.Serializable;
|
---|
15 | import java.time.LocalDateTime;
|
---|
16 |
|
---|
17 | // извештај за сите сервиси и за сите број на reviews и avg рејтинг
|
---|
18 | @Entity
|
---|
19 | @Getter
|
---|
20 | @Setter
|
---|
21 | @ToString
|
---|
22 | @RequiredArgsConstructor
|
---|
23 | @Immutable
|
---|
24 | @Table(name = "`orders_for_user`")
|
---|
25 | @IdClass(OrdersForUserId.class)
|
---|
26 | public class OrdersForUser implements Serializable {
|
---|
27 | @Serial
|
---|
28 | private static final long serialVersionUID = 1L;
|
---|
29 | @Id
|
---|
30 | Integer userid;
|
---|
31 | @Id
|
---|
32 | LocalDateTime orderdate;
|
---|
33 | @Id
|
---|
34 | String partname;
|
---|
35 | Integer amount;
|
---|
36 | Integer quantity;
|
---|
37 | String status;
|
---|
38 | }
|
---|
39 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.