source: src/main/java/com/example/moviezone/model/manytomany/CustomerIsInterestedInEvent.java@ 1fcb086

Last change on this file since 1fcb086 was ef84238, checked in by DenicaKj <dkorvezir@…>, 21 months ago

Interested in event

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