Last change
on this file since a64f926 was 881a233, checked in by KostaFortumanov <kfortumanov@…>, 3 years ago |
part 1
|
-
Property mode
set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | package it.finki.charitable.entities;
|
---|
2 |
|
---|
3 | import javax.persistence.*;
|
---|
4 |
|
---|
5 | @Entity
|
---|
6 | @Table(name = "emailMessage")
|
---|
7 | public class EmailMessage {
|
---|
8 |
|
---|
9 | @Id
|
---|
10 | @GeneratedValue(strategy = GenerationType.AUTO)
|
---|
11 | private Long id;
|
---|
12 |
|
---|
13 | private String sendTo;
|
---|
14 | private String subject;
|
---|
15 | private String text;
|
---|
16 |
|
---|
17 | public EmailMessage() {
|
---|
18 | }
|
---|
19 |
|
---|
20 | public EmailMessage(String sendTo, String subject, String text) {
|
---|
21 | this.sendTo = sendTo;
|
---|
22 | this.subject = subject;
|
---|
23 | this.text = text;
|
---|
24 | }
|
---|
25 |
|
---|
26 | public Long getId() {
|
---|
27 | return id;
|
---|
28 | }
|
---|
29 |
|
---|
30 | public void setId(Long id) {
|
---|
31 | this.id = id;
|
---|
32 | }
|
---|
33 |
|
---|
34 | public String getSendTo() {
|
---|
35 | return sendTo;
|
---|
36 | }
|
---|
37 |
|
---|
38 | public void setSendTo(String to) {
|
---|
39 | this.sendTo = to;
|
---|
40 | }
|
---|
41 |
|
---|
42 | public String getSubject() {
|
---|
43 | return subject;
|
---|
44 | }
|
---|
45 |
|
---|
46 | public void setSubject(String subject) {
|
---|
47 | this.subject = subject;
|
---|
48 | }
|
---|
49 |
|
---|
50 | public String getText() {
|
---|
51 | return text;
|
---|
52 | }
|
---|
53 |
|
---|
54 | public void setText(String text) {
|
---|
55 | this.text = text;
|
---|
56 | }
|
---|
57 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.