src/main/java/com/expiredminotaur/bcukbot/sql/collection/quote/Quote.java
package com.expiredminotaur.bcukbot.sql.collection.quote;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import java.sql.Date;
@Entity
public class Quote
{
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private int id;
private String quote;
private String source;
private Date date;
protected Quote()
{
}
public Quote(String quote, String source)
{
this.quote = quote;
this.source = source;
date = new Date(System.currentTimeMillis());
}
public int getId()
{
return id;
}
public void setId(int id)
{
this.id = id;
}
public String getQuote()
{
return quote;
}
public void setQuote(String quote)
{
this.quote = quote;
}
public String getSource()
{
return source;
}
public void setSource(String source)
{
this.source = source;
}
public Date getDate()
{
return date;
}
public void setDate(Date date)
{
this.date = date;
}
}