Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
Product.java
Upload User: jiancairen
Upload Date: 2007-08-27
Package Size: 26458k
Code Size: 1k
Category:
Java Develop
Development Platform:
Java
- package org.springframework.samples.jpetstore.domain;
- import java.io.Serializable;
- public class Product implements Serializable {
- /* Private Fields */
- private String productId;
- private String categoryId;
- private String name;
- private String description;
- /* JavaBeans Properties */
- public String getProductId() { return productId; }
- public void setProductId(String productId) { this.productId = productId.trim(); }
- public String getCategoryId() { return categoryId; }
- public void setCategoryId(String categoryId) { this.categoryId = categoryId; }
- public String getName() { return name; }
- public void setName(String name) { this.name = name; }
- public String getDescription() { return description; }
- public void setDescription(String description) { this.description = description; }
- /* Public Methods*/
- public String toString() {
- return getName();
- }
- }