Subversion Repositories SmartDukaan

Rev

Rev 21693 | Rev 21924 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
21720 ashik.ali 1
package com.spice.profitmandi.dao.entity.dtr;
21545 ashik.ali 2
 
3
import java.io.Serializable;
4
import java.time.LocalDateTime;
5
 
6
import javax.persistence.Column;
7
import javax.persistence.Entity;
8
import javax.persistence.EnumType;
9
import javax.persistence.Enumerated;
10
import javax.persistence.GeneratedValue;
11
import javax.persistence.GenerationType;
12
import javax.persistence.Id;
13
import javax.persistence.Table;
14
 
21720 ashik.ali 15
import com.spice.profitmandi.dao.enumuration.dtr.Gender;
16
import com.spice.profitmandi.dao.enumuration.dtr.SocialType;
21545 ashik.ali 17
 
18
/**
19
 * This class basically contains social user details
20
 * 
21
 * @author ashikali
22
 *
23
 */
24
@Entity
21720 ashik.ali 25
@Table(name="dtr.social_user", schema = "dtr")
21545 ashik.ali 26
 
27
public class SocialUser implements Serializable{
28
 
29
	private static final long serialVersionUID = 1L;
30
 
31
	public SocialUser() {
32
	}
33
 
34
	@Id
35
	@Column(name="id", unique=true, updatable=false)
36
	@GeneratedValue(strategy = GenerationType.IDENTITY)
37
	private int id;
38
 
39
	@Column(name = "name")
40
	private String name;
41
 
42
	@Column(name = "email_id", unique = true)
43
	private String emailId;
44
 
45
	@Column(name = "gender")
46
	@Enumerated(EnumType.STRING)
47
	private Gender gender;
48
 
49
	@Column(name="type")
50
    @Enumerated(EnumType.STRING)
51
    private SocialType type;
52
 
53
	@Column(name="create_timestamp", updatable = false)
54
	private LocalDateTime createTimestamp = LocalDateTime.now();
55
 
56
	@Column(name="update_timestamp")
57
	private LocalDateTime updateTimestamp = LocalDateTime.now();
58
 
59
	public int getId() {
60
		return id;
61
	}
62
	public void setId(int id) {
63
		this.id = id;
64
	}
65
 
66
	public String getName() {
67
		return name;
68
	}
69
	public void setName(String name) {
70
		this.name = name;
71
	}
72
	public String getEmailId() {
73
		return emailId;
74
	}
75
	public void setEmailId(String emailId) {
76
		this.emailId = emailId;
77
	}
78
 
79
	public SocialType getType() {
80
		return type;
81
	}
82
	public void setType(SocialType type) {
83
		this.type = type;
84
	}
85
 
86
	public void setGender(Gender gender) {
87
		this.gender = gender;
88
	}
89
	public Gender getGender() {
90
		return gender;
91
	}
92
 
93
    public void setCreateTimestamp(LocalDateTime createTimestamp) {
94
		this.createTimestamp = createTimestamp;
95
	}
96
    public LocalDateTime getCreateTimestamp() {
97
		return createTimestamp;
98
	}
99
    public LocalDateTime getUpdateTimestamp() {
100
		return updateTimestamp;
101
	}
102
    public void setUpdateTimestamp(LocalDateTime updateTimestamp) {
103
		this.updateTimestamp = updateTimestamp;
104
	}
105
	@Override
106
	public String toString() {
107
		return "SocialUser [id=" + id + ", name=" + name + ", emailId=" + emailId + ", type=" + type
21693 ashik.ali 108
				+ ", createTimestamp=" + createTimestamp + ", updateTimestamp=" + updateTimestamp + "]";
21545 ashik.ali 109
	}
110
 
111
 
112
 
113
}