blob: a629a7876d4eddb85d66600cd2d766e7b6f6a41d [file] [log] [blame]
package eu.mulk.mulkcms2.entity;
import io.quarkus.hibernate.orm.panache.PanacheEntityBase;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
@Entity
@Table(name = "journal_pingback", schema = "public", catalog = "mulkcms")
public class LegacyJournalPingback extends PanacheEntityBase {
@Id
@Column(name = "id", nullable = false)
public int id;
@Column(name = "uuid", nullable = false, length = 36)
public String uuid;
@Column(name = "date", nullable = false)
public long date;
@Column(name = "url", nullable = true, length = -1)
public String url;
@Column(name = "spam_p", nullable = true)
public Boolean spamP;
@Column(name = "submitter_ip", nullable = false, length = -1)
public String submitterIp;
@Column(name = "submitter_user_agent", nullable = false, length = -1)
public String submitterUserAgent;
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "entry_id", referencedColumnName = "id", nullable = false)
public LegacyJournalEntry journalEntry;
}