package cn.itweet.modules.admin.article.entity;

import javax.persistence.*;

/**
 * Created by whoami on 15/04/2017.
 */
@Entity
@Table(name = "article_categories")
public class ArticleCategories {

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Integer id;

    @Column(name = "tag_id")
    private Integer tagId;

    @Column(name = "article_id")
    private Integer articleId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTagId() {
        return tagId;
    }

    public void setTagId(Integer tagId) {
        this.tagId = tagId;
    }

    public Integer getArticleId() {
        return articleId;
    }

    public void setArticleId(Integer articleId) {
        this.articleId = articleId;
    }
}

@@ -298,19 +298,26 @@
 name = %22
-tag
+categories
 _id%22)%0A  
@@ -334,19 +334,26 @@
 Integer 
-tag
+categories
 Id;%0A%0A   
@@ -556,19 +556,26 @@
 eger get
-Tag
+Categories
 Id() %7B%0A 
@@ -588,19 +588,26 @@
  return 
-tag
+categories
 Id;%0A    
@@ -632,11 +632,18 @@
  set
-Tag
+Categories
 Id(I
@@ -649,19 +649,26 @@
 Integer 
-tag
+categories
 Id) %7B%0A  
@@ -682,19 +682,33 @@
 his.
-tagId = tag
+categoriesId = categories
 Id;%0A

edit article