mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
74 lines
1.2 KiB
Java
74 lines
1.2 KiB
Java
|
|
package com.commafeed.model;
|
||
|
|
|
||
|
|
import java.io.Serializable;
|
||
|
|
|
||
|
|
import javax.persistence.Column;
|
||
|
|
import javax.persistence.Entity;
|
||
|
|
import javax.persistence.GeneratedValue;
|
||
|
|
import javax.persistence.GenerationType;
|
||
|
|
import javax.persistence.Id;
|
||
|
|
import javax.persistence.ManyToOne;
|
||
|
|
import javax.persistence.Table;
|
||
|
|
|
||
|
|
@Entity
|
||
|
|
@Table(name = "FEEDSUBSCRIPTIONS")
|
||
|
|
public class FeedSubscription implements Serializable {
|
||
|
|
|
||
|
|
@Id
|
||
|
|
@GeneratedValue(strategy = GenerationType.AUTO)
|
||
|
|
private Long id;
|
||
|
|
|
||
|
|
@ManyToOne
|
||
|
|
private User user;
|
||
|
|
|
||
|
|
@ManyToOne
|
||
|
|
private Feed feed;
|
||
|
|
|
||
|
|
@Column(length = 128)
|
||
|
|
private String title;
|
||
|
|
|
||
|
|
@ManyToOne
|
||
|
|
private FeedCategory category;
|
||
|
|
|
||
|
|
public Feed getFeed() {
|
||
|
|
return feed;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setFeed(Feed feed) {
|
||
|
|
this.feed = feed;
|
||
|
|
}
|
||
|
|
|
||
|
|
public User getUser() {
|
||
|
|
return user;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setUser(User user) {
|
||
|
|
this.user = user;
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getTitle() {
|
||
|
|
return title;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setTitle(String title) {
|
||
|
|
this.title = title;
|
||
|
|
}
|
||
|
|
|
||
|
|
public FeedCategory getCategory() {
|
||
|
|
return category;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setCategory(FeedCategory category) {
|
||
|
|
this.category = category;
|
||
|
|
}
|
||
|
|
|
||
|
|
public Long getId() {
|
||
|
|
return id;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setId(Long id) {
|
||
|
|
this.id = id;
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|