package net.vexelon.currencybg.srv.db.models;

import java.util.Date;

public class CurrencyData {

	private String code;
	private int ratio;
	private String buy;
	private String sell;
	private Date date;
	private int source;

	public CurrencyData() {
	}

	public CurrencyData(String code, int ratio, String buy, String sell, Date date, int source) {
		super();
		this.code = code;
		this.ratio = ratio;
		this.buy = buy;
		this.sell = sell;
		this.date = date;
		this.source = source;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public int getRatio() {
		return ratio;
	}

	public void setRatio(int ratio) {
		this.ratio = ratio;
	}

	public String getBuy() {
		return buy;
	}

	public void setBuy(String buy) {
		this.buy = buy;
	}

	public String getSell() {
		return sell;
	}

	public void setSell(String sell) {
		this.sell = sell;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public int getSource() {
		return source;
	}

	public void setSource(int source) {
		this.source = source;
	}

	@Override
	public String toString() {
		return "CurrencyData [code=" + code + ", ratio=" + ratio + ", buy=" + buy + ", sell=" + sell + ", date=" + date
				+ ", source=" + source + "]";
	}

}

@@ -133,17 +133,32 @@
 nt ratio
-;
+ = 1; // default
 %0A%09privat
@@ -169,17 +169,34 @@
 ring buy
-;
+ = %220%22; // default
 %0A%09privat
@@ -208,17 +208,34 @@
 ing sell
-;
+ = %220%22; // default
 %0A%09privat

Add CurrencyData model defaults