View Javadoc

1   /*
2    * $Id: Sender.java 19191 2010-08-25 21:05:23Z tcarlson $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.example.geomail.dao;
12  
13  import javax.persistence.Entity;
14  import javax.persistence.Id;
15  
16  @Entity
17  public class Sender
18  {
19      @Id
20      private String ip;
21  
22      private String email;
23  
24      public String getEmail()
25      {
26          return email;
27      }
28  
29      public void setEmail(String email)
30      {
31          this.email = email;
32      }
33  
34      private String locationName;
35      private String countryName;
36  
37      private String latitude;
38      private String longitude;
39  
40      public String getLatitude()
41      {
42          return latitude;
43      }
44  
45      public void setLatitude(String latitude)
46      {
47          this.latitude = latitude;
48      }
49  
50      public String getLongitude()
51      {
52          return longitude;
53      }
54  
55      public void setLongitude(String longitude)
56      {
57          this.longitude = longitude;
58      }
59  
60      public String getLocationName()
61      {
62          return locationName;
63      }
64  
65      public void setLocationName(String locationName)
66      {
67          this.locationName = locationName;
68      }
69  
70      public String getCountryName()
71      {
72          return countryName;
73      }
74  
75      public void setCountryName(String countryName)
76      {
77          this.countryName = countryName;
78      }
79  
80      @Override
81      public String toString()
82      {
83          return "Sender( ip=" + getIp() + ", email=" + getEmail() + ", latitude=" + getLatitude()
84                 + ", longitude=" + getLongitude() + ", location=" + getLocationName() + ", country="
85                 + getCountryName() + ")";
86      }
87  
88      public String getIp()
89      {
90          return ip;
91      }
92  
93      public void setIp(String ip)
94      {
95          this.ip = ip;
96      }
97  }