Code example for BigDecimal

Methods: multiply

0
	@ManyToOne 
	@JoinColumn(name="InvoiceID") 
	private Invoice invoice;
 
	public BigDecimal getTotalCost() {
		return getUnitCost().multiply(new BigDecimal(getQuantity()));
	} 
	 
	 
	 
	 
	 
 
	public String getDescription() {
		return description;
	} 
 
	public void setDescription(String description) {
		this.description = description;
	}