All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jpaoletti.jpm.test.ComplexClass1 Maven / Gradle / Ivy

The newest version!
package jpaoletti.jpm.test;

import java.math.BigDecimal;
import java.util.Date;

/**
 *
 * @author jpaoletti
 */
public class ComplexClass1 {

    private Long id;
    private String description;
    private BigDecimal amount;
    private Date date;
    private Date datetime;
    private Boolean active;
    private String password;
    private String key;
    private Long size;
    private String bigstring;

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Boolean getActive() {
        return active;
    }

    public void setActive(Boolean active) {
        this.active = active;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public Date getDate() {
        return date;
    }

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

    public Date getDatetime() {
        return datetime;
    }

    public void setDatetime(Date datetime) {
        this.datetime = datetime;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Long getSize() {
        return size;
    }

    public void setSize(Long size) {
        this.size = size;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final ComplexClass1 other = (ComplexClass1) obj;
        if (this.getId() != other.getId() && (this.getId() == null || !this.getId().equals(other.getId()))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 83 * hash + (this.getId() != null ? this.getId().hashCode() : 0);
        return hash;
    }

    @Override
    public String toString() {
        return getDescription();
    }

    public String getBigstring() {
        return bigstring;
    }

    public void setBigstring(String bigstring) {
        this.bigstring = bigstring;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy