Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
ePhoneShop/src/main/java/com/xpacer/webai/data/Cart.java
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
114 lines (88 sloc)
2.1 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package com.xpacer.webai.data; | |
import javax.persistence.Entity; | |
import javax.persistence.Id; | |
import javax.persistence.Table; | |
/** | |
* | |
* @author xpacer | |
*/ | |
@Entity | |
@Table(name="cart") | |
public class Cart { | |
@Id | |
private int id; | |
private int userId; | |
private int guestId; | |
private int stockId; | |
private String stockName; | |
private String stockImage; | |
private float unitPrice; | |
private int quantity; | |
private float totalPrice; | |
private String status; | |
public int getId() { | |
return id; | |
} | |
public void setId(int id) { | |
this.id = id; | |
} | |
public int getUserId() { | |
return userId; | |
} | |
public void setUserId(int userId) { | |
this.userId = userId; | |
} | |
public int getGuestId() { | |
return guestId; | |
} | |
public void setGuestId(int guestId) { | |
this.guestId = guestId; | |
} | |
public int getStockId() { | |
return stockId; | |
} | |
public void setStockId(int stockId) { | |
this.stockId = stockId; | |
} | |
public int getQuantity() { | |
return quantity; | |
} | |
public void setQuantity(int quantity) { | |
this.quantity = quantity; | |
} | |
public String getStatus() { | |
return status; | |
} | |
public void setStatus(String status) { | |
this.status = status; | |
} | |
public String getStockName() { | |
return stockName; | |
} | |
public void setStockName(String stockName) { | |
this.stockName = stockName; | |
} | |
public String getStockImage() { | |
return stockImage; | |
} | |
public void setStockImage(String stockImage) { | |
this.stockImage = stockImage; | |
} | |
public float getUnitPrice() { | |
return unitPrice; | |
} | |
public void setUnitPrice(float unitPrice) { | |
this.unitPrice = unitPrice; | |
} | |
public float getTotalPrice() { | |
return totalPrice; | |
} | |
public void setTotalPrice(float totalPrice) { | |
this.totalPrice = totalPrice; | |
} | |
} |