Add Money model
This commit is contained in:
@@ -0,0 +1,30 @@
|
|||||||
|
package dst.ass1.jpa.model.impl;
|
||||||
|
|
||||||
|
import dst.ass1.jpa.model.IMoney;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
public class Money implements IMoney {
|
||||||
|
private String currency;
|
||||||
|
private BigDecimal value;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getCurrency() {
|
||||||
|
return currency;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setCurrency(String currency) {
|
||||||
|
this.currency = currency;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public BigDecimal getValue() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setValue(BigDecimal value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user