package com.commafeed.backend.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Index;

@Entity
@Table(name = "FEEDPUSHINFOS")
@SuppressWarnings("serial")
public class FeedPushInfo extends AbstractModel {

	@Column(unique = true)
	@OneToOne(fetch = FetchType.LAZY)
	private Feed feed;

	@Column(length = 2048, nullable = false)
	@Index(name = "topic_index")
	private String topic;

	@Column(length = 2048, nullable = false)
	private String hub;

	private boolean active;

	public String getTopic() {
		return topic;
	}

	public void setTopic(String topic) {
		this.topic = topic;
	}

	public Feed getFeed() {
		return feed;
	}

	public void setFeed(Feed feed) {
		this.feed = feed;
	}

	public String getHub() {
		return hub;
	}

	public void setHub(String hub) {
		this.hub = hub;
	}

	public boolean isActive() {
		return active;
	}

	public void setActive(boolean active) {
		this.active = active;
	}

}

@@ -134,24 +134,62 @@
 FetchType;%0D%0A
+import javax.persistence.JoinColumn;%0D%0A
 import javax
@@ -411,24 +411,28 @@
 odel %7B%0D%0A%0D%0A%09@
+Join
 Column(uniqu

fix annotation