45 lines
1.4 KiB
Java
45 lines
1.4 KiB
Java
package com.example.thingamablog.model;
|
|
|
|
import javax.persistence.*;
|
|
import java.sql.Timestamp;
|
|
|
|
@Entity
|
|
@Table(name = "ENTRY_TABLE_1096292361887")
|
|
public class BlogEntry {
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
private Long id;
|
|
|
|
private Timestamp timestamp;
|
|
private String title;
|
|
private String categories;
|
|
@Column(length = 65535)
|
|
private String entry;
|
|
private Boolean draft;
|
|
private Timestamp modified;
|
|
private String author;
|
|
|
|
public Long getId() { return id; }
|
|
public void setId(Long id) { this.id = id; }
|
|
|
|
public Timestamp getTimestamp() { return timestamp; }
|
|
public void setTimestamp(Timestamp timestamp) { this.timestamp = timestamp; }
|
|
|
|
public String getTitle() { return title; }
|
|
public void setTitle(String title) { this.title = title; }
|
|
|
|
public String getCategories() { return categories; }
|
|
public void setCategories(String categories) { this.categories = categories; }
|
|
|
|
public String getEntry() { return entry; }
|
|
public void setEntry(String entry) { this.entry = entry; }
|
|
|
|
public Boolean getDraft() { return draft; }
|
|
public void setDraft(Boolean draft) { this.draft = draft; }
|
|
|
|
public Timestamp getModified() { return modified; }
|
|
public void setModified(Timestamp modified) { this.modified = modified; }
|
|
|
|
public String getAuthor() { return author; }
|
|
public void setAuthor(String author) { this.author = author; }
|
|
} |