main
Last change
on this file since c3268ca was c3268ca, checked in by Stefan Risteski <stefanristeski2001@…>, 9 months ago |
Project
The whole Project
|
-
Property mode
set to
100644
|
File size:
321 bytes
|
Line | |
---|
1 | package com.example.kvizko.models;
|
---|
2 |
|
---|
3 | import jakarta.persistence.*;
|
---|
4 | import lombok.Data;
|
---|
5 |
|
---|
6 | @Entity
|
---|
7 | @Data
|
---|
8 | @Table(name="category")
|
---|
9 | public class Category {
|
---|
10 |
|
---|
11 | @Id
|
---|
12 | private long categoryid;
|
---|
13 |
|
---|
14 | @ManyToOne
|
---|
15 | @JoinColumn(name="subjectid")
|
---|
16 | private Subject subject;
|
---|
17 | //private long subjectid;
|
---|
18 |
|
---|
19 | private String categoryname;
|
---|
20 |
|
---|
21 |
|
---|
22 |
|
---|
23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.