<commit_before>package org.vtsukur.spring.rest.market.domain.offer;

import lombok.Getter;
import lombok.Setter;
import org.vtsukur.spring.rest.market.domain.BaseEntity;

import javax.persistence.Entity;
import java.math.BigDecimal;
import java.math.BigInteger;

/**
 * @author volodymyr.tsukur
 */
@Entity
@Getter
@Setter
public class Offer extends BaseEntity {

    private Type type;

    private Currency currency;

    private BigDecimal rate;

    private BigInteger amount;

    public enum Type {

        BUY,

        SELL

    }

    public enum Currency {

        USD,

        EUR,

        UAH

    }

}<commit_msg>Adding status and publishing time.<commit_after>package org.vtsukur.spring.rest.market.domain.offer;

import lombok.Getter;
import lombok.Setter;
import org.vtsukur.spring.rest.market.domain.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Lob;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDateTime;

/**
 * @author volodymyr.tsukur
 */
@Entity
@Getter
@Setter
public class Offer extends BaseEntity {

    @Lob
    private LocalDateTime published;

    private Type type;

    private Currency currency;

    private BigDecimal rate;

    private BigInteger amount;

    private Status status;

    public enum Type {

        BUY,

        SELL

    }

    public enum Currency {

        USD,

        EUR,

        UAH

    }

    public enum Status {

        NEW,

        PUBLISHED,

        OUTDATED

    }

}
{'fraction_non_alphanumeric': 0.08117099135063206, 'fraction_numerical': 0.0, 'mean_word_length': 2.598086124401914, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7488373', 'n_tokens_mistral': 499, 'n_tokens_neox': 459, 'n_words': 115}