Last change
on this file since 7888b17 was ab49338, checked in by KostaFortumanov <kfortumanov@…>, 3 years ago |
Dodadeno prijavuvanje na objavi
|
-
Property mode
set to
100644
|
File size:
1011 bytes
|
Line | |
---|
1 | package it.finki.charitable.entities;
|
---|
2 |
|
---|
3 | import javax.persistence.*;
|
---|
4 |
|
---|
5 | @Entity
|
---|
6 | @Table(name = "reason")
|
---|
7 | public class Reason {
|
---|
8 |
|
---|
9 | @SequenceGenerator(
|
---|
10 | name = "reason_sequence",
|
---|
11 | sequenceName = "reason_sequence",
|
---|
12 | allocationSize = 1
|
---|
13 | )
|
---|
14 | @GeneratedValue(
|
---|
15 | strategy = GenerationType.SEQUENCE,
|
---|
16 | generator = "reason_sequence"
|
---|
17 | )
|
---|
18 | @Id
|
---|
19 | @Column(
|
---|
20 | name = "id",
|
---|
21 | nullable = false,
|
---|
22 | updatable = false
|
---|
23 | )
|
---|
24 | private Long id;
|
---|
25 |
|
---|
26 | private String description;
|
---|
27 | @OneToOne
|
---|
28 | private AppUser user;
|
---|
29 |
|
---|
30 | public Long getId() {
|
---|
31 | return id;
|
---|
32 | }
|
---|
33 |
|
---|
34 | public void setId(Long id) {
|
---|
35 | this.id = id;
|
---|
36 | }
|
---|
37 |
|
---|
38 | public String getDescription() {
|
---|
39 | return description;
|
---|
40 | }
|
---|
41 |
|
---|
42 | public void setDescription(String description) {
|
---|
43 | this.description = description;
|
---|
44 | }
|
---|
45 |
|
---|
46 | public AppUser getUser() {
|
---|
47 | return user;
|
---|
48 | }
|
---|
49 |
|
---|
50 | public void setUser(AppUser user) {
|
---|
51 | this.user = user;
|
---|
52 | }
|
---|
53 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.