1 package test.hibernate; 2 3 import java.math.BigDecimal ; 4 5 20 public class Product extends Persistent implements Updateable { 21 22 private String description; 23 private String code; 24 private BigDecimal price; 25 private byte[] image; 26 private String updateComment; 27 28 31 public Product() { 32 super(); 33 } 34 35 40 public String getDescription() { 41 return description; 42 } 43 44 48 public void setDescription(String name) { 49 this.description = name; 50 } 51 52 59 public String getCode() { 60 return code; 61 } 62 63 67 public void setCode(String code) { 68 this.code = code; 69 } 70 71 77 public byte[] getImage() { 78 return image; 79 } 80 81 86 public BigDecimal getPrice() { 87 return price; 88 } 89 90 94 public void setImage(byte[] image) { 95 this.image = image; 96 } 97 98 102 public void setPrice(BigDecimal price) { 103 this.price = price; 104 } 105 106 public String getUpdateComment() { 107 return updateComment; 108 } 109 110 public void setUpdateComment(String string) { 111 updateComment = string; 112 } 113 114 } 115 | Popular Tags |