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

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;

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

	private Integer id;
	private String title;
	private int groupId;
	private int userId;
	private String content;
	private String attachFile;

	public Production() {
	}

	public Production(String title, int groupId, int userId, String content) {
		this.title = title;
		this.groupId = groupId;
		this.userId = userId;
		this.content = content;
	}

	public Production(String title, int groupId, int userId, String content, String attachFile) {
		this.title = title;
		this.groupId = groupId;
		this.userId = userId;
		this.content = content;
		this.attachFile = attachFile;
	}

	@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 = 30)
	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Column(name = "groupId", nullable = false)
	public int getGroupId() {
		return this.groupId;
	}

	public void setGroupId(int groupId) {
		this.groupId = groupId;
	}

	@Column(name = "userId", nullable = false)
	public int getUserId() {
		return this.userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

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

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

	@Column(name = "attach_file", length = 50)
	public String getAttachFile() {
		return this.attachFile;
	}

	public void setAttachFile(String attachFile) {
		this.attachFile = attachFile;
	}

}

@@ -252,16 +252,41 @@
 ENTITY;%0A
+%0Aimport java.util.Date;%0A%0A
 import j
@@ -337,16 +337,90 @@
 e.Table;
+%0Aimport javax.persistence.Temporal;%0Aimport javax.persistence.TemporalType;
 %0A%0A/**%0A *
@@ -724,16 +724,66 @@
 chFile;%0A
+%09private Date createtime;%0A%09private String thumb;%0A%09
 %0A%09public
@@ -2097,24 +2097,179 @@
 ontent;%0A%09%7D%0A%0A
+%09@Column(name = %22thumb%22, nullable = false)%0A%09public String getThumb() %7B%0A%09%09return thumb;%0A%09%7D%0A%0A%09public void setThumb(String thumb) %7B%0A%09%09this.thumb = thumb;%0A%09%7D%0A%0A
 %09@Column(nam
@@ -2447,10 +2447,230 @@
 le;%0A%09%7D%0A%0A
+%09@Temporal(TemporalType.TIMESTAMP)%0A%09@Column(name = %22createtime%22, length = 19)%0A%09public Date getCreatetime() %7B%0A%09%09return this.createtime;%0A%09%7D%0A%0A%09public void setCreatetime(Date createtime) %7B%0A%09%09this.createtime = createtime;%0A%09%7D%0A
 %7D%0A

fix bugs