/*
 * This file is generated by jOOQ.
 */
package com.databasir.dao.tables.pojos;


import java.io.Serializable;
import java.time.LocalDateTime;

import org.jooq.JSON;


/**
 * This class is generated by jOOQ.
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class DatabaseDocumentHistoryPojo implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer       id;
    private Integer       projectId;
    private Integer       databaseDocumentId;
    private JSON          databaseDocumentObject;
    private Long          version;
    private LocalDateTime createAt;

    public DatabaseDocumentHistoryPojo() {}

    public DatabaseDocumentHistoryPojo(DatabaseDocumentHistoryPojo value) {
        this.id = value.id;
        this.projectId = value.projectId;
        this.databaseDocumentId = value.databaseDocumentId;
        this.databaseDocumentObject = value.databaseDocumentObject;
        this.version = value.version;
        this.createAt = value.createAt;
    }

    public DatabaseDocumentHistoryPojo(
        Integer       id,
        Integer       projectId,
        Integer       databaseDocumentId,
        JSON          databaseDocumentObject,
        Long          version,
        LocalDateTime createAt
    ) {
        this.id = id;
        this.projectId = projectId;
        this.databaseDocumentId = databaseDocumentId;
        this.databaseDocumentObject = databaseDocumentObject;
        this.version = version;
        this.createAt = createAt;
    }

    /**
     * Getter for <code>databasir.database_document_history.id</code>.
     */
    public Integer getId() {
        return this.id;
    }

    /**
     * Setter for <code>databasir.database_document_history.id</code>.
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * Getter for <code>databasir.database_document_history.project_id</code>.
     */
    public Integer getProjectId() {
        return this.projectId;
    }

    /**
     * Setter for <code>databasir.database_document_history.project_id</code>.
     */
    public void setProjectId(Integer projectId) {
        this.projectId = projectId;
    }

    /**
     * Getter for
     * <code>databasir.database_document_history.database_document_id</code>.
     */
    public Integer getDatabaseDocumentId() {
        return this.databaseDocumentId;
    }

    /**
     * Setter for
     * <code>databasir.database_document_history.database_document_id</code>.
     */
    public void setDatabaseDocumentId(Integer databaseDocumentId) {
        this.databaseDocumentId = databaseDocumentId;
    }

    /**
     * Getter for
     * <code>databasir.database_document_history.database_document_object</code>.
     */
    public JSON getDatabaseDocumentObject() {
        return this.databaseDocumentObject;
    }

    /**
     * Setter for
     * <code>databasir.database_document_history.database_document_object</code>.
     */
    public void setDatabaseDocumentObject(JSON databaseDocumentObject) {
        this.databaseDocumentObject = databaseDocumentObject;
    }

    /**
     * Getter for <code>databasir.database_document_history.version</code>.
     */
    public Long getVersion() {
        return this.version;
    }

    /**
     * Setter for <code>databasir.database_document_history.version</code>.
     */
    public void setVersion(Long version) {
        this.version = version;
    }

    /**
     * Getter for <code>databasir.database_document_history.create_at</code>.
     */
    public LocalDateTime getCreateAt() {
        return this.createAt;
    }

    /**
     * Setter for <code>databasir.database_document_history.create_at</code>.
     */
    public void setCreateAt(LocalDateTime createAt) {
        this.createAt = createAt;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder("DatabaseDocumentHistoryPojo (");

        sb.append(id);
        sb.append(", ").append(projectId);
        sb.append(", ").append(databaseDocumentId);
        sb.append(", ").append(databaseDocumentObject);
        sb.append(", ").append(version);
        sb.append(", ").append(createAt);

        sb.append(")");
        return sb.toString();
    }
}
