1
2
3
4
5
6
7 package org.mule.example.geomail.dao;
8
9 import javax.persistence.Entity;
10 import javax.persistence.Id;
11
12 @Entity
13 public class Sender
14 {
15 @Id
16 private String ip;
17
18 private String email;
19
20 public String getEmail()
21 {
22 return email;
23 }
24
25 public void setEmail(String email)
26 {
27 this.email = email;
28 }
29
30 private String locationName;
31 private String countryName;
32
33 private String latitude;
34 private String longitude;
35
36 public String getLatitude()
37 {
38 return latitude;
39 }
40
41 public void setLatitude(String latitude)
42 {
43 this.latitude = latitude;
44 }
45
46 public String getLongitude()
47 {
48 return longitude;
49 }
50
51 public void setLongitude(String longitude)
52 {
53 this.longitude = longitude;
54 }
55
56 public String getLocationName()
57 {
58 return locationName;
59 }
60
61 public void setLocationName(String locationName)
62 {
63 this.locationName = locationName;
64 }
65
66 public String getCountryName()
67 {
68 return countryName;
69 }
70
71 public void setCountryName(String countryName)
72 {
73 this.countryName = countryName;
74 }
75
76 @Override
77 public String toString()
78 {
79 return "Sender( ip=" + getIp() + ", email=" + getEmail() + ", latitude=" + getLatitude()
80 + ", longitude=" + getLongitude() + ", location=" + getLocationName() + ", country="
81 + getCountryName() + ")";
82 }
83
84 public String getIp()
85 {
86 return ip;
87 }
88
89 public void setIp(String ip)
90 {
91 this.ip = ip;
92 }
93 }