// Path: src/main/java/com/github/vedenin/codingchallenge/common/CurrencyEnum.java
// public enum CurrencyEnum {
//     EUR("EUR", "Euro (EUR)"),
//     USD("USD", "US Dollar (USD)"),
//     GBP("GBP", "British Pound (GBP)"),
//     NZD("NZD", "New Zealand Dollar (NZD)"),
//     AUD("AUD", "Australian Dollar (AUD)"),
//     JPY("JPY", "Japanese Yen (JPY)"),
//     HUF("HUF", "Hungarian Forint (HUF)"),
//     RUB("RUB", "Russian Ruble (RUB)"),
//     PLN("PLN", "Polish Zloty (PLN)");
//     private final String code;
//     private final String description;
// 
//     CurrencyEnum(String code, String description) {
//         this.code = code;
//         this.description = description;
//     }
// 
//     public String getCode() {
//         return code;
//     }
// 
//     public String getDescription() {
//         return description;
//     }
// }


import com.github.vedenin.codingchallenge.common.CurrencyEnum;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.math.BigDecimal;
package com.github.vedenin.codingchallenge.persistence;



/**
 * Created by slava on 16.02.17.
 */
@Entity
public class DefaultProperty {
    @Id
    private Long id = 1L;

    private String defaultCurrencyTo = CurrencyEnum.USD.getCode();
// Path: src/main/java/com/github/vedenin/codingchallenge/common/CurrencyEnum.java
// public enum CurrencyEnum {
//     EUR("EUR", "Euro (EUR)"),
//     USD("USD", "US Dollar (USD)"),
//     GBP("GBP", "British Pound (GBP)"),
//     NZD("NZD", "New Zealand Dollar (NZD)"),
//     AUD("AUD", "Australian Dollar (AUD)"),
//     JPY("JPY", "Japanese Yen (JPY)"),
//     HUF("HUF", "Hungarian Forint (HUF)"),
//     RUB("RUB", "Russian Ruble (RUB)"),
//     PLN("PLN", "Polish Zloty (PLN)");
//     private final String code;
//     private final String description;
// 
//     CurrencyEnum(String code, String description) {
//         this.code = code;
//         this.description = description;
//     }
// 
//     public String getCode() {
//         return code;
//     }
// 
//     public String getDescription() {
//         return description;
//     }
// }


// Path: src/main/java/com/github/vedenin/codingchallenge/persistence/DefaultProperty.java
import com.github.vedenin.codingchallenge.common.CurrencyEnum;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.math.BigDecimal;

package com.github.vedenin.codingchallenge.persistence;



/**
 * Created by slava on 16.02.17.
 */
@Entity
public class DefaultProperty {
    @Id
    private Long id = 1L;

    private String defaultCurrencyTo = CurrencyEnum.USD.getCode();
    private String defaultCurrencyFrom = CurrencyEnum.EUR.getCode();