📄 product.java
字号:
/* Copyright 2006 Sun Microsystems, Inc. All rights reserved. You may not modify, use, reproduce, or distribute this software except in compliance with the terms of the License at: http://developer.sun.com/berkeley_license.html$Id: Product.java,v 1.3 2006/05/05 20:15:25 inder Exp $ */package com.sun.javaee.blueprints.petstore.model;import javax.persistence.Entity;import javax.persistence.Id;import javax.persistence.Table; @Entity@Table(name="PRODUCT") public class Product implements java.io.Serializable{ private String productID; private String categoryID; private String name; private String description; private String imageURL; public Product(String productID, String categoryID, String name, String description, String imageURL) { this.productID = productID; this.categoryID = categoryID; this.name = name; this.description = description; this.imageURL = imageURL; } public Product() { } @Id public String getProductID() { return this.productID; } public String getCategoryID() { return categoryID; } public String getName() { return name; } public String getDescription() { return description; } public String getImageURL() { return imageURL; } public void setCategoryID(String categoryID) { this.categoryID = categoryID; } public void setProductID(String productID) { this.productID = productID; } public void setName(String name) { this.name = name; } public void setDescription(String description) { this.description = description; } public void setImageURL(String imageURL) { this.imageURL = imageURL; } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -