Last change
on this file was fdfbdde, checked in by Stojilkova Sara <sara.stojilkova.students.finki.ukim.mk>, 9 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
548 bytes
|
Line | |
---|
1 | package com.example.task.entity.subject;
|
---|
2 |
|
---|
3 | import jakarta.persistence.Column;
|
---|
4 | import jakarta.persistence.EmbeddedId;
|
---|
5 | import jakarta.persistence.Entity;
|
---|
6 | import jakarta.persistence.Table;
|
---|
7 | import lombok.AllArgsConstructor;
|
---|
8 | import lombok.Getter;
|
---|
9 | import lombok.NoArgsConstructor;
|
---|
10 | import lombok.Setter;
|
---|
11 |
|
---|
12 | @Entity
|
---|
13 | @Table(name = "subject_at_term", schema = "project")
|
---|
14 | @NoArgsConstructor
|
---|
15 | @AllArgsConstructor
|
---|
16 | @Getter
|
---|
17 | @Setter
|
---|
18 | public class SubjectEntity {
|
---|
19 |
|
---|
20 | @EmbeddedId
|
---|
21 | private SubjectId id;
|
---|
22 |
|
---|
23 | @Column(name = "subject_name")
|
---|
24 | private String name;
|
---|
25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.