1 package org.hibernate.test.annotations.entity; 3 4 import java.io.Serializable ; 5 import java.math.BigDecimal ; 6 import java.util.Currency ; 7 8 11 public class MonetaryAmount implements Serializable { 12 13 private BigDecimal amount; 14 private Currency currency; 15 16 public MonetaryAmount(BigDecimal amount, Currency currency) { 17 this.amount = amount; 18 this.currency = currency; 19 } 20 21 public BigDecimal getAmount() { 22 return amount; 23 } 24 25 public void setAmount(BigDecimal amount) { 26 this.amount = amount; 27 } 28 29 public Currency getCurrency() { 30 return currency; 31 } 32 33 public void setCurrency(Currency currency) { 34 this.currency = currency; 35 } 36 } 37 | Popular Tags |