package com.farm.authority.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
 
@Entity(name = "UserPost")
@Table(name = "alone_auth_userpost")
public class Userpost implements java.io.Serializable {
        private static final long serialVersionUID = 1L;

        @Id
        @GenericGenerator(name = "systemUUID", strategy = "uuid")
        @GeneratedValue(generator = "systemUUID")
        @Column(name = "ID", length = 32, insertable = true, updatable = true, nullable = false)
        private String id;
        @Column(name = "POSTID", length = 32, nullable = false)
        private String postid;
        @Column(name = "USERID", length = 32, nullable = false)
        private String userid;

        public Userpost() {
		}
        public Userpost(String id, String postid, String userid) {
			super();
			this.id = id;
			this.postid = postid;
			this.userid = userid;
		}
		public String  getPostid() {
          return this.postid;
        }
        public void setPostid(String postid) {
          this.postid = postid;
        }
        public String  getId() {
          return this.id;
        }
        public void setId(String id) {
          this.id = id;
        }
        public String  getUserid() {
          return this.userid;
        }
        public void setUserid(String userid) {
          this.userid = userid;
        }
}