Last change
on this file was ed20c2c, checked in by HumaSejdini <humasejdini12@…>, 2 years ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
914 bytes
|
Line | |
---|
1 | package com.example.baza.model;
|
---|
2 |
|
---|
3 | import javax.persistence.*;
|
---|
4 |
|
---|
5 | @Entity
|
---|
6 | @Table(name = "izdava", schema = "project")
|
---|
7 | public class Izdava {
|
---|
8 | @EmbeddedId
|
---|
9 | private IzdavaId id;
|
---|
10 |
|
---|
11 | @MapsId("idKnigi")
|
---|
12 | @ManyToOne(fetch = FetchType.LAZY, optional = false)
|
---|
13 | @JoinColumn(name = "id_knigi", nullable = false)
|
---|
14 | private Knigi idKnigi;
|
---|
15 |
|
---|
16 | @MapsId("idAvtor")
|
---|
17 | @ManyToOne(fetch = FetchType.LAZY, optional = false)
|
---|
18 | @JoinColumn(name = "id_avtor", nullable = false)
|
---|
19 | private Avtor idAvtor;
|
---|
20 |
|
---|
21 | public Avtor getIdAvtor() {
|
---|
22 | return idAvtor;
|
---|
23 | }
|
---|
24 |
|
---|
25 | public void setIdAvtor(Avtor idAvtor) {
|
---|
26 | this.idAvtor = idAvtor;
|
---|
27 | }
|
---|
28 |
|
---|
29 | public Knigi getIdKnigi() {
|
---|
30 | return idKnigi;
|
---|
31 | }
|
---|
32 |
|
---|
33 | public void setIdKnigi(Knigi idKnigi) {
|
---|
34 | this.idKnigi = idKnigi;
|
---|
35 | }
|
---|
36 |
|
---|
37 | public IzdavaId getId() {
|
---|
38 | return id;
|
---|
39 | }
|
---|
40 |
|
---|
41 | public void setId(IzdavaId id) {
|
---|
42 | this.id = id;
|
---|
43 | }
|
---|
44 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.