Battle-Cattle/BCUK-Bot-3

View on GitHub
src/main/java/com/expiredminotaur/bcukbot/sql/tasks/Punishment.java

Summary

Maintainability
A
1 hr
Test Coverage
package com.expiredminotaur.bcukbot.sql.tasks;

import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;

@Entity
public class Punishment
{
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private long id;
    private String punishment;
    private boolean punishmentGiven = false;

    public long getId()
    {
        return id;
    }

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

    public String getPunishment()
    {
        return punishment;
    }

    public void setPunishment(String punishment)
    {
        this.punishment = punishment;
    }

    public boolean isPunishmentGiven()
    {
        return punishmentGiven;
    }

    public void setPunishmentGiven(boolean punishmentGiven)
    {
        this.punishmentGiven = punishmentGiven;
    }
}