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


import java.io.Serializable


/**
 * This class is generated by jOOQ.
 */
@Suppress("UNCHECKED_CAST")
data class CourseSpeaker(
    var courseId: Long? = null,
    var kotlinerId: Long? = 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: CourseSpeaker = other as CourseSpeaker
        if (this.courseId == null) {
            if (o.courseId != null)
                return false
        }
        else if (this.courseId != o.courseId)
            return false
        if (this.kotlinerId == null) {
            if (o.kotlinerId != null)
                return false
        }
        else if (this.kotlinerId != o.kotlinerId)
            return false
        return true
    }

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

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

        sb.append(courseId)
        sb.append(", ").append(kotlinerId)

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