|
| 1 | +package de.ballaci.jpa.domain; |
| 2 | + |
| 3 | +import javax.persistence.*; |
| 4 | +import java.io.Serializable; |
| 5 | +import java.sql.Clob; |
| 6 | + |
| 7 | +/** |
| 8 | + * @author Armand.Ballaci |
| 9 | + */ |
| 10 | + |
| 11 | +@Entity |
| 12 | +@Table(name = "CUSTOMER_LIST") |
| 13 | +public class CustomerList implements Serializable { |
| 14 | + @Id |
| 15 | + @Column(name = "ID", updatable = false, insertable = false) |
| 16 | + @GeneratedValue(strategy = GenerationType.AUTO) |
| 17 | + private long id; |
| 18 | + |
| 19 | + @Column(name = "NAME") |
| 20 | + private String name; |
| 21 | + |
| 22 | + @Column(name = "ADDRESS") |
| 23 | + private String address; |
| 24 | + |
| 25 | + @Column(name = "PHONE") |
| 26 | + private String phone; |
| 27 | + |
| 28 | + @Column(name = "CITY") |
| 29 | + private String city; |
| 30 | + |
| 31 | + @Column(name = "COUNTRY") |
| 32 | + private String country; |
| 33 | + |
| 34 | + @Column(name = "SID") |
| 35 | + private int sid; |
| 36 | + |
| 37 | + public long getId() { |
| 38 | + return id; |
| 39 | + } |
| 40 | + |
| 41 | + public void setId(long id) { |
| 42 | + this.id = id; |
| 43 | + } |
| 44 | + |
| 45 | + public String getName() { |
| 46 | + return name; |
| 47 | + } |
| 48 | + |
| 49 | + public void setName(String name) { |
| 50 | + this.name = name; |
| 51 | + } |
| 52 | + |
| 53 | + public String getAddress() { |
| 54 | + return address; |
| 55 | + } |
| 56 | + |
| 57 | + public void setAddress(String address) { |
| 58 | + this.address = address; |
| 59 | + } |
| 60 | + |
| 61 | + public String getPhone() { |
| 62 | + return phone; |
| 63 | + } |
| 64 | + |
| 65 | + public void setPhone(String phone) { |
| 66 | + this.phone = phone; |
| 67 | + } |
| 68 | + |
| 69 | + public String getCity() { |
| 70 | + return city; |
| 71 | + } |
| 72 | + |
| 73 | + public void setCity(String city) { |
| 74 | + this.city = city; |
| 75 | + } |
| 76 | + |
| 77 | + public String getCountry() { |
| 78 | + return country; |
| 79 | + } |
| 80 | + |
| 81 | + public void setCountry(String country) { |
| 82 | + this.country = country; |
| 83 | + } |
| 84 | + |
| 85 | + |
| 86 | + public int getSid() { |
| 87 | + return sid; |
| 88 | + } |
| 89 | + |
| 90 | + public void setSid(int sid) { |
| 91 | + this.sid = sid; |
| 92 | + } |
| 93 | +} |
0 commit comments