0314提交
This commit is contained in:
@@ -0,0 +1,77 @@
|
||||
package com.yaoyuan.jiscuss.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
|
||||
import lombok.Data;
|
||||
@Data
|
||||
@Entity
|
||||
@Table(name="discussions")
|
||||
public class Discussions implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@Column(name = "id", unique = true)
|
||||
private Integer id;
|
||||
|
||||
@Column(name="title")
|
||||
private String title;
|
||||
|
||||
@Column(name="content")
|
||||
private String content;
|
||||
|
||||
@Column(name="comments_count")
|
||||
private Integer comments_count;
|
||||
|
||||
@Column(name="participants_count")
|
||||
private Integer participants_count;
|
||||
|
||||
@Column(name="number_index")
|
||||
private Integer number_index;
|
||||
|
||||
@Column(name="start_time")
|
||||
private Date start_time;
|
||||
|
||||
@Column(name="start_user_id")
|
||||
private Integer start_user_id;
|
||||
|
||||
@Column(name="start_post_id")
|
||||
private Integer start_post_id;
|
||||
|
||||
@Column(name="last_time")
|
||||
private Date last_time;
|
||||
|
||||
@Column(name="last_user_id")
|
||||
private Integer last_user_id;
|
||||
|
||||
@Column(name="last_post_id")
|
||||
private Integer last_post_id;
|
||||
|
||||
@Column(name="last_post_number")
|
||||
private Integer last_post_number;
|
||||
|
||||
@Column(name="is_approved")
|
||||
private Integer is_approved;
|
||||
|
||||
@Column(name="like_count")
|
||||
private Integer like_count;
|
||||
|
||||
|
||||
@Column(name="ip_address")
|
||||
private String ip_address;
|
||||
|
||||
@Column(name="create_id")
|
||||
private Integer create_id;
|
||||
|
||||
@Column(name="create_time")
|
||||
private Date create_time;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.yaoyuan.jiscuss.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
|
||||
import lombok.Data;
|
||||
@Data
|
||||
@Entity
|
||||
@Table(name="discussionstags")
|
||||
public class DiscussionsTags implements Serializable{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Id
|
||||
@Column(name="discussion_id")
|
||||
private Integer discussion_id;
|
||||
|
||||
@Column(name="tag_id")
|
||||
private Integer tag_id;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
package com.yaoyuan.jiscuss.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@Entity
|
||||
@Table(name="posts")
|
||||
public class Posts implements Serializable{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Integer id;
|
||||
|
||||
@Column(name="discussion_id")
|
||||
private Integer discussion_id;
|
||||
|
||||
@Column(name="number")
|
||||
private Integer number;
|
||||
|
||||
@Column(name="time")
|
||||
private Date time;
|
||||
|
||||
@Column(name="user_id")
|
||||
private Integer user_id;
|
||||
|
||||
@Column(name="type")
|
||||
private String type;
|
||||
|
||||
@Column(name="content")
|
||||
private String content;
|
||||
|
||||
@Column(name="edit_time")
|
||||
private Date edit_time;
|
||||
|
||||
@Column(name="edit_user_id")
|
||||
private Integer edit_user_id;
|
||||
|
||||
@Column(name="ip_address")
|
||||
private String ip_address;
|
||||
|
||||
@Column(name="copyright")
|
||||
private String copyright;
|
||||
|
||||
@Column(name="is_approved")
|
||||
private Integer is_approved;
|
||||
|
||||
@Column(name="create_id")
|
||||
private Integer create_id;
|
||||
|
||||
@Column(name="create_time")
|
||||
private Date create_time;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.yaoyuan.jiscuss.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@Entity
|
||||
@Table(name="settings")
|
||||
public class Settings implements Serializable{
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Id
|
||||
@Column(name="key")
|
||||
private String key;
|
||||
|
||||
@Column(name="value")
|
||||
private String value;
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.yaoyuan.jiscuss.entity;
|
||||
|
||||
|
||||
|
||||
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.Table;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@Entity
|
||||
@Table(name="staff")
|
||||
public class Staff implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Integer id;
|
||||
|
||||
@Column(name="name")
|
||||
private String name;
|
||||
|
||||
@Column(name="age")
|
||||
private Integer age;
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
package com.yaoyuan.jiscuss.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@Entity
|
||||
@Table(name="tags")
|
||||
public class Tags implements Serializable{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Integer id;
|
||||
|
||||
@Column(name="name")
|
||||
private String name;
|
||||
|
||||
@Column(name="description")
|
||||
private String description;
|
||||
|
||||
@Column(name="color")
|
||||
private String color;
|
||||
|
||||
@Column(name="position")
|
||||
private Integer position;
|
||||
|
||||
@Column(name="parent_id")
|
||||
private Integer parent_id;
|
||||
|
||||
@Column(name="discussions_count")
|
||||
private String discussions_count;
|
||||
|
||||
@Column(name="last_time")
|
||||
private Date last_time;
|
||||
|
||||
@Column(name="last_discussion_id")
|
||||
private Integer last_discussion_id;
|
||||
|
||||
@Column(name="create_id")
|
||||
private Integer create_id;
|
||||
|
||||
@Column(name="create_time")
|
||||
private Date create_time;
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
package com.yaoyuan.jiscuss.entity;
|
||||
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
|
||||
|
||||
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@Entity
|
||||
@Table(name="users")
|
||||
public class Users implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Integer id;
|
||||
|
||||
@Column(name="username")
|
||||
private String username;
|
||||
|
||||
@Column(name="realname")
|
||||
private String realname;
|
||||
|
||||
@Column(name="email")
|
||||
private String email;
|
||||
|
||||
@Column(name="password")
|
||||
private String password;
|
||||
|
||||
@Column(name="join_time")
|
||||
private Date join_time;
|
||||
|
||||
@Column(name="age")
|
||||
private Integer age;
|
||||
|
||||
@Column(name="gender")
|
||||
private String gender;
|
||||
|
||||
@Column(name="phone")
|
||||
private String phone;
|
||||
|
||||
@Column(name="discussions_count")
|
||||
private Integer discussions_count;
|
||||
|
||||
@Column(name="comments_count")
|
||||
private Integer comments_count;
|
||||
|
||||
@Column(name="last_seen_time")
|
||||
private Date last_seen_time;
|
||||
|
||||
@Column(name="flag")
|
||||
private Integer flag;
|
||||
|
||||
@Column(name="level")
|
||||
private Integer level;
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user