mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
* initial java9+ support * restore session management, updated for jetty 9.4 * Session actually implements EntityManager * reusable method for setting the timeout
53 lines
1.0 KiB
Java
53 lines
1.0 KiB
Java
package com.commafeed.backend.model;
|
|
|
|
import java.util.Set;
|
|
|
|
import javax.persistence.Column;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.Lob;
|
|
import javax.persistence.OneToMany;
|
|
import javax.persistence.Table;
|
|
|
|
import org.hibernate.annotations.Type;
|
|
|
|
import lombok.Getter;
|
|
import lombok.Setter;
|
|
|
|
@Entity
|
|
@Table(name = "FEEDENTRYCONTENTS")
|
|
@SuppressWarnings("serial")
|
|
@Getter
|
|
@Setter
|
|
public class FeedEntryContent extends AbstractModel {
|
|
|
|
@Column(length = 2048)
|
|
private String title;
|
|
|
|
@Column(length = 40)
|
|
private String titleHash;
|
|
|
|
@Lob
|
|
@Column(length = Integer.MAX_VALUE)
|
|
@Type(type = "org.hibernate.type.TextType")
|
|
private String content;
|
|
|
|
@Column(length = 40)
|
|
private String contentHash;
|
|
|
|
@Column(name = "author", length = 128)
|
|
private String author;
|
|
|
|
@Column(length = 2048)
|
|
private String enclosureUrl;
|
|
|
|
@Column(length = 255)
|
|
private String enclosureType;
|
|
|
|
@Column(length = 4096)
|
|
private String categories;
|
|
|
|
@OneToMany(mappedBy = "content")
|
|
private Set<FeedEntry> entries;
|
|
|
|
}
|