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

io.github.dehuckakpyt.telegrambot.model.UUIDTable.kt Maven / Gradle / Ivy

There is a newer version: 0.11.4
Show newest version
package io.github.dehuckakpyt.telegrambot.model

import java.util.*
import javax.persistence.Column
import javax.persistence.GeneratedValue
import javax.persistence.Id
import javax.persistence.MappedSuperclass


/**
 * Created on 02.01.2024.
 *

* * @author Denis Matytsin */ @MappedSuperclass abstract class UUIDTable { @Id @GeneratedValue @Column(name = "id", nullable = false) var id: UUID? = null override fun equals(other: Any?): Boolean { if (this === other) return true if (javaClass != other?.javaClass) return false other as UUIDTable return id == other.id } override fun hashCode(): Int { return id.hashCode() } override fun toString(): String { return "UUIDTable(id=$id)" } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy