com.testing26thjuly_.db123testing.V1.java Source code

Java tutorial

Introduction

Here is the source code for com.testing26thjuly_.db123testing.V1.java

Source

/*Copyright (c) 2016-2017 wavemaker.com All Rights Reserved.
 This software is the confidential and proprietary information of wavemaker.com You shall not disclose such Confidential Information and shall use it only in accordance
 with the terms of the source code license agreement you entered into with wavemaker.com*/

package com.testing26thjuly_.db123testing;

/*This is a Studio Managed File. DO NOT EDIT THIS FILE. Your changes may be reverted by Studio.*/

import java.io.Serializable;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Date;
import java.util.Objects;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * V1 generated by WaveMaker Studio.
 */
@Entity
@Table(name = "`V1`", schema = "dbo")
@IdClass(V1Id.class)
public class V1 implements Serializable {

    private int id;
    private Byte byteCol;
    private Short shortCol;
    private Integer intCol;
    private BigInteger longCol;
    private BigInteger bigIntCol;
    private Float floatCol;
    private Double doubleCol;
    private BigDecimal bigDecCol;
    private Character charCol;
    private String stringCol;
    private String textCol;
    private Boolean booleanCol;
    @JsonIgnore
    private byte[] blobCol;
    private Date timestampCol;
    private Date dateCol;
    private Date timeCol;
    private Date datetimeCol;

    @Id
    @Column(name = "`ID`", nullable = false, scale = 0, precision = 10)
    public int getId() {
        return this.id;
    }

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

    @Id
    @Column(name = "`Byte Col`", nullable = true, scale = 0, precision = 2)
    public Byte getByteCol() {
        return this.byteCol;
    }

    public void setByteCol(Byte byteCol) {
        this.byteCol = byteCol;
    }

    @Id
    @Column(name = "`Short Col`", nullable = true, scale = 0, precision = 4)
    public Short getShortCol() {
        return this.shortCol;
    }

    public void setShortCol(Short shortCol) {
        this.shortCol = shortCol;
    }

    @Id
    @Column(name = "`Int Col`", nullable = true, scale = 0, precision = 8)
    public Integer getIntCol() {
        return this.intCol;
    }

    public void setIntCol(Integer intCol) {
        this.intCol = intCol;
    }

    @Id
    @Column(name = "`Long Col`", nullable = true, scale = 0, precision = 18)
    public BigInteger getLongCol() {
        return this.longCol;
    }

    public void setLongCol(BigInteger longCol) {
        this.longCol = longCol;
    }

    @Id
    @Column(name = "`BigInt Col`", nullable = true, scale = 0, precision = 35)
    public BigInteger getBigIntCol() {
        return this.bigIntCol;
    }

    public void setBigIntCol(BigInteger bigIntCol) {
        this.bigIntCol = bigIntCol;
    }

    @Id
    @Column(name = "`Float Col`", nullable = true, scale = 4, precision = 8)
    public Float getFloatCol() {
        return this.floatCol;
    }

    public void setFloatCol(Float floatCol) {
        this.floatCol = floatCol;
    }

    @Id
    @Column(name = "`Double Col`", nullable = true, scale = 8, precision = 18)
    public Double getDoubleCol() {
        return this.doubleCol;
    }

    public void setDoubleCol(Double doubleCol) {
        this.doubleCol = doubleCol;
    }

    @Id
    @Column(name = "`BigDec Col`", nullable = true, scale = 10, precision = 35)
    public BigDecimal getBigDecCol() {
        return this.bigDecCol;
    }

    public void setBigDecCol(BigDecimal bigDecCol) {
        this.bigDecCol = bigDecCol;
    }

    @Id
    @Column(name = "`Char Col`", nullable = true, length = 1)
    public Character getCharCol() {
        return this.charCol;
    }

    public void setCharCol(Character charCol) {
        this.charCol = charCol;
    }

    @Id
    @Column(name = "`String Col`", nullable = true, length = 255)
    public String getStringCol() {
        return this.stringCol;
    }

    public void setStringCol(String stringCol) {
        this.stringCol = stringCol;
    }

    @Id
    @Column(name = "`Text Col`", nullable = true, length = 500)
    public String getTextCol() {
        return this.textCol;
    }

    public void setTextCol(String textCol) {
        this.textCol = textCol;
    }

    @Id
    @Column(name = "`Boolean Col`", nullable = true)
    public Boolean getBooleanCol() {
        return this.booleanCol;
    }

    public void setBooleanCol(Boolean booleanCol) {
        this.booleanCol = booleanCol;
    }

    @Id
    @Column(name = "`Blob Col`", nullable = true)
    public byte[] getBlobCol() {
        return this.blobCol;
    }

    public void setBlobCol(byte[] blobCol) {
        this.blobCol = blobCol;
    }

    @Id
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "`Timestamp Col`", nullable = true)
    public Date getTimestampCol() {
        return this.timestampCol;
    }

    public void setTimestampCol(Date timestampCol) {
        this.timestampCol = timestampCol;
    }

    @Id
    @Temporal(TemporalType.DATE)
    @Column(name = "`Date Col`", nullable = true)
    public Date getDateCol() {
        return this.dateCol;
    }

    public void setDateCol(Date dateCol) {
        this.dateCol = dateCol;
    }

    @Id
    @Temporal(TemporalType.TIME)
    @Column(name = "`Time Col`", nullable = true)
    public Date getTimeCol() {
        return this.timeCol;
    }

    public void setTimeCol(Date timeCol) {
        this.timeCol = timeCol;
    }

    @Id
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "`Datetime Col`", nullable = true)
    public Date getDatetimeCol() {
        return this.datetimeCol;
    }

    public void setDatetimeCol(Date datetimeCol) {
        this.datetimeCol = datetimeCol;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o)
            return true;
        if (!(o instanceof V1))
            return false;
        final V1 v1 = (V1) o;
        return Objects.equals(getId(), v1.getId()) && Objects.equals(getByteCol(), v1.getByteCol())
                && Objects.equals(getShortCol(), v1.getShortCol()) && Objects.equals(getIntCol(), v1.getIntCol())
                && Objects.equals(getLongCol(), v1.getLongCol())
                && Objects.equals(getBigIntCol(), v1.getBigIntCol())
                && Objects.equals(getFloatCol(), v1.getFloatCol())
                && Objects.equals(getDoubleCol(), v1.getDoubleCol())
                && Objects.equals(getBigDecCol(), v1.getBigDecCol())
                && Objects.equals(getCharCol(), v1.getCharCol())
                && Objects.equals(getStringCol(), v1.getStringCol())
                && Objects.equals(getTextCol(), v1.getTextCol())
                && Objects.equals(getBooleanCol(), v1.getBooleanCol())
                && Objects.equals(getBlobCol(), v1.getBlobCol())
                && Objects.equals(getTimestampCol(), v1.getTimestampCol())
                && Objects.equals(getDateCol(), v1.getDateCol()) && Objects.equals(getTimeCol(), v1.getTimeCol())
                && Objects.equals(getDatetimeCol(), v1.getDatetimeCol());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getId(), getByteCol(), getShortCol(), getIntCol(), getLongCol(), getBigIntCol(),
                getFloatCol(), getDoubleCol(), getBigDecCol(), getCharCol(), getStringCol(), getTextCol(),
                getBooleanCol(), getBlobCol(), getTimestampCol(), getDateCol(), getTimeCol(), getDatetimeCol());
    }
}