package com.cidic.design.model;
// Generated 2017-5-9 16:09:09 by Hibernate Tools 4.3.1.Final

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.fasterxml.jackson.annotation.JsonFormat;



/**
 * News generated by hbm2java
 */
@Entity
@Table(name = "news", catalog = "design_competition") 
public class News implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer id;
	private String title;
	private String newsAbstract;
	private Date publishTime;
	private String content;

	public News() {
	}

	public News(String title, Date publishTime, String content) {
		this.title = title;
		this.publishTime = publishTime;
		this.content = content;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)

	@Column(name = "Id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

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

	@Column(name = "title", nullable = false, length = 50)
	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	@Column(name = "news_abstract", nullable = false)
	public String getNewsAbstract() {
		return this.newsAbstract;
	}

	public void setNewsAbstract(String newsAbstract) {
		this.newsAbstract = newsAbstract;
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss")
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "publish_time", nullable = false, length = 19)
	public Date getPublishTime() {
		return this.publishTime;
	}

	public void setPublishTime(Date publishTime) {
		this.publishTime = publishTime;
	}

	@Column(name = "content", nullable = false, length = 65535)
	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

}

@@ -759,16 +759,39 @@
 stract;%0A
+%09private String thumb;%0A
 %09private
@@ -1589,16 +1589,190 @@
 ct;%0A%09%7D%0A%0A
+%09@Column(name = %22thumb%22, nullable = false, length = 40)%0A%09public String getThumb() %7B%0A%09%09return this.thumb;%0A%09%7D%0A%0A%09public void setThumb(String thumb) %7B%0A%09%09this.thumb = thumb;%0A%09%7D%0A%09%0A
 %09@JsonFo

fix bugs