1 7 package org.jfox.petstore.entity; 8 9 import java.io.Serializable ; 10 import javax.persistence.Column; 11 import javax.persistence.Entity; 12 13 @Entity 14 public class Product implements Serializable { 15 16 @Column(name = "productid") 17 String productId; 18 19 @Column(name = "category") 20 String categoryId; 21 22 @Column(name = "name") 23 String name; 24 25 @Column(name = "descn") 26 String description; 27 28 public String getCategoryId() { 29 return categoryId; 30 } 31 32 public void setCategoryId(String categoryId) { 33 this.categoryId = categoryId; 34 } 35 36 public String getDescription() { 37 return description; 38 } 39 40 public void setDescription(String description) { 41 this.description = description; 42 } 43 44 public String getName() { 45 return name; 46 } 47 48 public void setName(String name) { 49 this.name = name; 50 } 51 52 public String getProductId() { 53 return productId; 54 } 55 56 public void setProductId(String productId) { 57 this.productId = productId; 58 } 59 } 60 | Popular Tags |