1 package org.springframework.samples.jpetstore.domain; 2 3 import java.io.Serializable ; 4 5 6 public class Account implements Serializable { 7 8 9 10 private String username; 11 private String password; 12 private String email; 13 private String firstName; 14 private String lastName; 15 private String status; 16 private String address1; 17 private String address2; 18 private String city; 19 private String state; 20 private String zip; 21 private String country; 22 private String phone; 23 private String favouriteCategoryId; 24 private String languagePreference; 25 private boolean listOption; 26 private boolean bannerOption; 27 private String bannerName; 28 29 30 31 public String getUsername() { return username; } 32 public void setUsername(String username) { this.username = username; } 33 34 public String getPassword() { return password; } 35 public void setPassword(String password) { this.password = password; } 36 37 public String getEmail() { return email; } 38 public void setEmail(String email) { this.email = email; } 39 40 public String getFirstName() { return firstName; } 41 public void setFirstName(String firstName) { this.firstName = firstName; } 42 43 public String getLastName() { return lastName; } 44 public void setLastName(String lastName) { this.lastName = lastName; } 45 46 public String getStatus() { return status; } 47 public void setStatus(String status) { this.status = status; } 48 49 public String getAddress1() { return address1; } 50 public void setAddress1(String address1) { this.address1 = address1; } 51 52 public String getAddress2() { return address2; } 53 public void setAddress2(String address2) { this.address2 = address2; } 54 55 public String getCity() { return city; } 56 public void setCity(String city) { this.city = city; } 57 58 public String getState() { return state; } 59 public void setState(String state) { this.state = state; } 60 61 public String getZip() { return zip; } 62 public void setZip(String zip) { this.zip = zip; } 63 64 public String getCountry() { return country; } 65 public void setCountry(String country) { this.country = country; } 66 67 public String getPhone() { return phone; } 68 public void setPhone(String phone) { this.phone = phone; } 69 70 public String getFavouriteCategoryId() { return favouriteCategoryId; } 71 public void setFavouriteCategoryId(String favouriteCategoryId) { this.favouriteCategoryId = favouriteCategoryId; } 72 73 public String getLanguagePreference() { return languagePreference; } 74 public void setLanguagePreference(String languagePreference) { this.languagePreference = languagePreference; } 75 76 public boolean isListOption() { return listOption; } 77 public void setListOption(boolean listOption) { this.listOption = listOption; } 78 public int getListOptionAsInt() { return listOption ? 1 : 0; } 79 80 public boolean isBannerOption() { return bannerOption; } 81 public void setBannerOption(boolean bannerOption) { this.bannerOption = bannerOption; } 82 public int getBannerOptionAsInt() { return bannerOption ? 1 : 0; } 83 84 public String getBannerName() { return bannerName; } 85 public void setBannerName(String bannerName) { this.bannerName = bannerName; } 86 87 } 88 | Popular Tags |