/*
 * This file is generated by jOOQ.
 */
package jooq.main.tables.pojos


import java.io.Serializable
import java.time.OffsetDateTime

import jooq.main.enums.LikeStateEnum


/**
 * This class is generated by jOOQ.
 */
@Suppress("UNCHECKED_CAST")
data class KotlinerLikeEntityState(
    var kotlinerId: Long? = null,
    var entityId: Long? = null,
    var likeState: LikeStateEnum? = null,
    var adjustment: Int? = null,
    var created: OffsetDateTime? = null,
    var updated: OffsetDateTime? = null
): Serializable {


    override fun equals(other: Any?): Boolean {
        if (this === other)
            return true
        if (other == null)
            return false
        if (this::class != other::class)
            return false
        val o: KotlinerLikeEntityState = other as KotlinerLikeEntityState
        if (this.kotlinerId == null) {
            if (o.kotlinerId != null)
                return false
        }
        else if (this.kotlinerId != o.kotlinerId)
            return false
        if (this.entityId == null) {
            if (o.entityId != null)
                return false
        }
        else if (this.entityId != o.entityId)
            return false
        if (this.likeState == null) {
            if (o.likeState != null)
                return false
        }
        else if (this.likeState != o.likeState)
            return false
        if (this.adjustment == null) {
            if (o.adjustment != null)
                return false
        }
        else if (this.adjustment != o.adjustment)
            return false
        if (this.created == null) {
            if (o.created != null)
                return false
        }
        else if (this.created != o.created)
            return false
        if (this.updated == null) {
            if (o.updated != null)
                return false
        }
        else if (this.updated != o.updated)
            return false
        return true
    }

    override fun hashCode(): Int {
        val prime = 31
        var result = 1
        result = prime * result + (if (this.kotlinerId == null) 0 else this.kotlinerId.hashCode())
        result = prime * result + (if (this.entityId == null) 0 else this.entityId.hashCode())
        result = prime * result + (if (this.likeState == null) 0 else this.likeState.hashCode())
        result = prime * result + (if (this.adjustment == null) 0 else this.adjustment.hashCode())
        result = prime * result + (if (this.created == null) 0 else this.created.hashCode())
        result = prime * result + (if (this.updated == null) 0 else this.updated.hashCode())
        return result
    }

    override fun toString(): String {
        val sb = StringBuilder("KotlinerLikeEntityState (")

        sb.append(kotlinerId)
        sb.append(", ").append(entityId)
        sb.append(", ").append(likeState)
        sb.append(", ").append(adjustment)
        sb.append(", ").append(created)
        sb.append(", ").append(updated)

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