All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.giavacms.paypalrs.model.Address Maven / Gradle / Ivy

The newest version!
package org.giavacms.paypalrs.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

@Entity
public class Address implements Serializable
{
   private static final long serialVersionUID = 1L;

   private Long id;
   private String line1;
   private String line2;
   private String city;
   private String countryCode;
   private String postalCode;
   private String state;
   private String phone;

   @Id
   @GeneratedValue(strategy = GenerationType.IDENTITY)
   public Long getId()
   {
      return id;
   }

   public void setId(Long id)
   {
      this.id = id;
   }

   public String getLine1()
   {
      return line1;
   }

   public void setLine1(String line1)
   {
      this.line1 = line1;
   }

   public String getLine2()
   {
      return line2;
   }

   public void setLine2(String line2)
   {
      this.line2 = line2;
   }

   public String getCity()
   {
      return city;
   }

   public void setCity(String city)
   {
      this.city = city;
   }

   public String getCountryCode()
   {
      return countryCode;
   }

   public void setCountryCode(String countryCode)
   {
      this.countryCode = countryCode;
   }

   public String getPostalCode()
   {
      return postalCode;
   }

   public void setPostalCode(String postalCode)
   {
      this.postalCode = postalCode;
   }

   public String getState()
   {
      return state;
   }

   public void setState(String state)
   {
      this.state = state;
   }

   public String getPhone()
   {
      return phone;
   }

   public void setPhone(String phone)
   {
      this.phone = phone;
   }

   @Override
   public String toString()
   {
      return "Address [id=" + id + ", line1=" + line1 + ", line2=" + line2 + ", city=" + city + ", countryCode="
               + countryCode + ", postalCode=" + postalCode + ", state=" + state + ", phone=" + phone + "]";
   }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy