首页>代码>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  LV5 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  LV55 2021年7月4日
为了水掉6位用户名  LV4 2021年6月28日
 LV5 2021年6月23日
最近浏览更多
taoshen95  LV16 3月26日
ma406805131  LV19 2024年12月18日
我做梦  LV2 2024年12月14日
chinajy  LV2 2024年12月8日
123wwwghh  LV2 2024年9月18日
曾显示  LV6 2024年7月7日
blank_  LV2 2024年6月28日
abcadmin123  LV2 2024年6月23日
tll123456  LV1 2024年6月17日
郭宇航裹裹  LV5 2024年6月9日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友