Last change
on this file since 2d8c0e7 was 5577566, checked in by NikolaCenevski <cenevskinikola@…>, 3 years ago |
prototip part 2
|
-
Property mode
set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | package it.finki.charitable.entities;
|
---|
2 |
|
---|
3 | import javax.persistence.*;
|
---|
4 |
|
---|
5 | @Entity
|
---|
6 | @Table(name = "funds_collected")
|
---|
7 | public class FundsCollected {
|
---|
8 |
|
---|
9 | @SequenceGenerator(
|
---|
10 | name = "funds_collected_sequence",
|
---|
11 | sequenceName = "funds_collected_sequence",
|
---|
12 | allocationSize = 1
|
---|
13 | )
|
---|
14 | @GeneratedValue(
|
---|
15 | strategy = GenerationType.SEQUENCE,
|
---|
16 | generator = "funds_collected_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 |
|
---|
28 | private float funds;
|
---|
29 |
|
---|
30 | public FundsCollected() {
|
---|
31 | }
|
---|
32 |
|
---|
33 | public FundsCollected(String description, float funds) {
|
---|
34 | this.description = description;
|
---|
35 | this.funds = funds;
|
---|
36 | }
|
---|
37 |
|
---|
38 | public Long getId() {
|
---|
39 | return id;
|
---|
40 | }
|
---|
41 |
|
---|
42 | public void setId(Long id) {
|
---|
43 | this.id = id;
|
---|
44 | }
|
---|
45 |
|
---|
46 | public String getDescription() {
|
---|
47 | return description;
|
---|
48 | }
|
---|
49 |
|
---|
50 | public void setDescription(String description) {
|
---|
51 | this.description = description;
|
---|
52 | }
|
---|
53 |
|
---|
54 | public float getFunds() {
|
---|
55 | return funds;
|
---|
56 | }
|
---|
57 |
|
---|
58 | public void setFunds(float funds) {
|
---|
59 | this.funds = funds;
|
---|
60 | }
|
---|
61 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.