main
Last change
on this file since 988f3fa was ada7108, checked in by Filip Chorbeski <86695898+FilipChorbeski@…>, 19 months ago |
change ids from int to Integer
Co-Authored-By: SazdovaEkaterina <74919977+SazdovaEkaterina@…>
|
-
Property mode
set to
100644
|
File size:
469 bytes
|
Line | |
---|
1 | package finki.paw5.model.entities;
|
---|
2 |
|
---|
3 | import jakarta.persistence.*;
|
---|
4 | import lombok.Data;
|
---|
5 |
|
---|
6 | @Data
|
---|
7 | @Entity
|
---|
8 | @Table(name = "category")
|
---|
9 | public class Category {
|
---|
10 |
|
---|
11 | @Id
|
---|
12 | @GeneratedValue(strategy = GenerationType.IDENTITY)
|
---|
13 | @Column(name = "id_category")
|
---|
14 | private Integer id;
|
---|
15 |
|
---|
16 | @Column(name = "name_category", nullable = false, length = 100)
|
---|
17 | private String name;
|
---|
18 |
|
---|
19 | public Category(String name) {
|
---|
20 | this.name = name;
|
---|
21 | }
|
---|
22 |
|
---|
23 | public Category() {
|
---|
24 | }
|
---|
25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.