Last change
on this file since fc165ab was e6b2246, checked in by milamihajlovska <mila.mihajlovska01@…>, 22 months ago |
added models
|
-
Property mode
set to
100644
|
File size:
392 bytes
|
Line | |
---|
1 | package com.example.moviezone.model;
|
---|
2 |
|
---|
3 | import jakarta.persistence.Entity;
|
---|
4 | import jakarta.persistence.PrimaryKeyJoinColumn;
|
---|
5 | import jakarta.persistence.Table;
|
---|
6 | import lombok.Getter;
|
---|
7 | import lombok.Setter;
|
---|
8 | import lombok.ToString;
|
---|
9 |
|
---|
10 | @Entity
|
---|
11 | @Getter
|
---|
12 | @Setter
|
---|
13 | @ToString
|
---|
14 | @Table(name = "customers")
|
---|
15 | @PrimaryKeyJoinColumn(name = "id_customer")
|
---|
16 | public class Customer extends User{
|
---|
17 |
|
---|
18 |
|
---|
19 | Integer points;
|
---|
20 |
|
---|
21 |
|
---|
22 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.