首页>代码>jsp+servlet仿当当网电商图书系统>/huangdd/src/javafile/cart.java
package javafile;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="cart")
public class cart {
  private int dingdanid;
  private loginuser usernmae;
  private String tushuname;
  private int count;
  private float price;
  @Id
public int getDingdanid() {
	return dingdanid;
}
public void setDingdanid(int dingdanid) {
	this.dingdanid = dingdanid;
}
@ManyToOne(cascade = CascadeType.ALL)
@JoinColumn(name = "username")
public loginuser getUsernmae() {
	return usernmae;
}
public void setUsernmae(loginuser usernmae) {
	this.usernmae = usernmae;
}
public String getTushuname() {
	return tushuname;
}
public void setTushuname(String tushuname) {
	this.tushuname = tushuname;
}
public int getCount() {
	return count;
}
public void setCount(int count) {
	this.count = count;
}
public float getPrice() {
	return price;
}
public void setPrice(float price) {
	this.price = price;
}
  
}
最近下载更多
 LV6 2023年6月4日
13133117021  LV4 2023年5月21日
cc0706cc  LV4 2023年1月3日
2019188059  LV2 2022年1月9日
枝江tom  LV2 2021年12月25日
无语  LV4 2021年12月10日
zxcvbnmg  LV3 2021年12月8日
wanglinddad  LV54 2021年7月4日
为了水掉6位用户名  LV4 2021年6月28日
 LV5 2021年6月23日
最近浏览更多
张七七 4月13日
暂无贡献等级
夜上清元  LV8 3月15日
晴曛  LV6 2月20日
Liang朝伟  LV1 1月6日
wttttts  LV2 1月1日
iiiiiiixiiiiii  LV1 2023年12月28日
asddwh  LV12 2023年12月26日
微信网友_6786215447367680  LV4 2023年12月20日
komorebi123987  LV5 2023年12月13日
李林112233  LV2 2023年12月4日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友