Last change
on this file was ef84238, checked in by DenicaKj <dkorvezir@…>, 21 months ago |
Interested in event
|
-
Property mode
set to
100644
|
File size:
926 bytes
|
Rev | Line | |
---|
[e2ca67b] | 1 | package com.example.moviezone.model.manytomany;
|
---|
| 2 |
|
---|
| 3 | import lombok.Getter;
|
---|
| 4 | import lombok.RequiredArgsConstructor;
|
---|
| 5 | import lombok.Setter;
|
---|
| 6 | import lombok.ToString;
|
---|
[2269653] | 7 | import org.springframework.security.core.GrantedAuthority;
|
---|
| 8 | import org.springframework.security.core.userdetails.UserDetails;
|
---|
| 9 |
|
---|
| 10 | import javax.management.relation.Role;
|
---|
| 11 | import javax.persistence.*;
|
---|
| 12 | import java.time.LocalDate;
|
---|
| 13 | import java.time.LocalDateTime;
|
---|
| 14 | import java.util.Collection;
|
---|
| 15 |
|
---|
[e2ca67b] | 16 |
|
---|
| 17 | @Entity
|
---|
| 18 | @Getter
|
---|
| 19 | @Setter
|
---|
| 20 | @ToString
|
---|
| 21 | @RequiredArgsConstructor
|
---|
| 22 | @Table(name = "`customer_is_interested_in_event`")
|
---|
[eb226b2] | 23 | @IdClass(CustomerIsInterestedInEventId.class)
|
---|
[e2ca67b] | 24 | public class CustomerIsInterestedInEvent {
|
---|
| 25 | @Id
|
---|
| 26 | @Column(name = "id_customer")
|
---|
[ef84238] | 27 | Integer idcustomer;
|
---|
[e2ca67b] | 28 | @Column(name = "id_event")
|
---|
| 29 | @Id
|
---|
[ef84238] | 30 | Integer idevent;
|
---|
| 31 |
|
---|
| 32 | public CustomerIsInterestedInEvent(Integer id_customer, Integer id_event) {
|
---|
| 33 | this.idcustomer = id_customer;
|
---|
| 34 | this.idevent = id_event;
|
---|
| 35 | }
|
---|
[e2ca67b] | 36 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.