-
大小: 1.19MB文件类型: .zip金币: 1下载: 0 次发布日期: 2023-08-29
- 语言: Java
- 标签: 中南大学 软件架构 JpetStore jsp/servlet
资源简介
基于MVC模式、使用JSP/Servlet+JDBC完成JPetStore宠物商店。具体包含下列三个业务模块:
1. 商品展示模块。主要包括系统主页面、展示Category、Product和Item等页面和功能。
2. 用户管理模块。主要包括用户登录、注册新用户、修改用户信息等页面和功能模块。
3. 订单模块。订单模块又可以分为购物车管理和订单管理两个部分:其中购物车管理包括添加到购物车和展示购物车信息等;而订单管理主要指生成订单、显示订单详细信息等。
代码片段和文件信息
package org.csu.myjpetstore.domain;
import java.io.Serializable;
public class Account implements Serializable {
private static final long serialVersionUID = 8751282105532159742L;
private String username;
private String password;
private String email;
private String firstName;
private String lastName;
private String status;
private String address1;
private String address2;
private String city;
private String state;
private String zip;
private String country;
private String phone;
private String favouriteCategoryId;
private String languagePreference;
private boolean listOption;
private boolean bannerOption;
private String bannerName;
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getFirstName() {
return firstName;
}
//@Validate(required=true on={“newAccount“ “editAccount“})
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public String getLastName() {
return lastName;
}
//@Validate(required=true on={“newAccount“ “editAccount“})
public void setLastName(String lastName) {
this.lastName = lastName;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getAddress1() {
return address1;
}
public void setAddress1(String address1) {
this.address1 = address1;
}
public String getAddress2() {
return address2;
}
public void setAddress2(String address2) {
this.address2 = address2;
}
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
public String getZip() {
return zip;
}
public void setZip(String zip) {
this.zip = zip;
}
public String getCountry() {
return country;
}
public void setCountry(String country) {
this.country = country;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public String getFavouriteCategoryId() {
return favouriteCategoryId;
}
public void setFavouriteCategoryId(String favouriteCategoryId) {
this.favouriteCategoryId = favouriteCategoryId;
}
public String getLanguagePreference() {
return languagePreference;
}
public void setLanguagePreference(String languagePreference) {
this.languagePreference = languagePreference;
}
public boolean isListOption() {
return listOption;
}
public void setListOption(boolean listOption) {
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2014-11-10 23:43 myjpetstore-jsp servlet\
文件 1215 2014-10-07 20:02 myjpetstore-jsp servlet\.classpath
文件 1336 2014-10-06 20:27 myjpetstore-jsp servlet\.project
目录 0 2014-11-10 23:43 myjpetstore-jsp servlet\.settings\
文件 522 2014-10-06 20:22 myjpetstore-jsp servlet\.settings\.jsdtscope
文件 364 2014-10-06 20:22 myjpetstore-jsp servlet\.settings\org.eclipse.jdt.core.prefs
文件 492 2014-10-06 20:22 myjpetstore-jsp servlet\.settings\org.eclipse.wst.common.component
文件 414 2014-10-06 20:22 myjpetstore-jsp servlet\.settings\org.eclipse.wst.common.project.facet.core.xm
文件 49 2014-10-06 20:22 myjpetstore-jsp servlet\.settings\org.eclipse.wst.jsdt.ui.superType.container
文件 6 2014-10-06 20:22 myjpetstore-jsp servlet\.settings\org.eclipse.wst.jsdt.ui.superType.name
目录 0 2014-10-08 23:27 myjpetstore-jsp servlet\src\
目录 0 2014-10-07 15:04 myjpetstore-jsp servlet\src\org\
目录 0 2014-10-07 15:04 myjpetstore-jsp servlet\src\org\csu\
目录 0 2014-11-10 23:43 myjpetstore-jsp servlet\src\org\csu\myjpetstore\
目录 0 2014-11-10 23:43 myjpetstore-jsp servlet\src\org\csu\myjpetstore\domain\
文件 3351 2014-10-09 21:10 myjpetstore-jsp servlet\src\org\csu\myjpetstore\domain\Account.java
文件 2519 2014-11-05 21:35 myjpetstore-jsp servlet\src\org\csu\myjpetstore\domain\Cart.java
文件 1074 2014-11-02 10:38 myjpetstore-jsp servlet\src\org\csu\myjpetstore\domain\CartItem.java
文件 760 2014-10-07 15:50 myjpetstore-jsp servlet\src\org\csu\myjpetstore\domain\Category.java
文件 2532 2014-10-07 15:50 myjpetstore-jsp servlet\src\org\csu\myjpetstore\domain\Item.java
文件 1797 2014-11-02 10:38 myjpetstore-jsp servlet\src\org\csu\myjpetstore\domain\LineItem.java
文件 6631 2014-11-05 12:26 myjpetstore-jsp servlet\src\org\csu\myjpetstore\domain\Order.java
文件 925 2014-10-07 23:10 myjpetstore-jsp servlet\src\org\csu\myjpetstore\domain\Product.java
文件 593 2014-11-02 10:38 myjpetstore-jsp servlet\src\org\csu\myjpetstore\domain\Sequence.java
目录 0 2014-11-10 23:43 myjpetstore-jsp servlet\src\org\csu\myjpetstore\persistence\
文件 2702 2014-10-10 23:29 myjpetstore-jsp servlet\src\org\csu\myjpetstore\persistence\AccountDAO.java
文件 446 2014-10-07 20:26 myjpetstore-jsp servlet\src\org\csu\myjpetstore\persistence\CategoryDAO.java
文件 1420 2014-10-07 20:10 myjpetstore-jsp servlet\src\org\csu\myjpetstore\persistence\DBUtil.java
目录 0 2014-11-10 23:43 myjpetstore-jsp servlet\src\org\csu\myjpetstore\persistence\impl\
文件 8538 2014-10-14 21:29 myjpetstore-jsp servlet\src\org\csu\myjpetstore\persistence\impl\AccountDAOImpl.java
文件 1917 2014-10-07 20:27 myjpetstore-jsp servlet\src\org\csu\myjpetstore\persistence\impl\CategoryDAOImpl.java
............此处省略167个文件信息
评论
共有 条评论