Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
21545 ashik.ali 1
package com.spice.profitmandi.dao.entity;
2
 
3
import java.time.LocalDateTime;
4
 
5
import javax.persistence.Column;
6
import javax.persistence.Entity;
7
import javax.persistence.GeneratedValue;
8
import javax.persistence.GenerationType;
9
import javax.persistence.Id;
10
 
11
@Entity(name="activation_codes")
12
public class ActivationCode {
13
 
14
	@Id
15
	@Column(unique=true, updatable=false)
16
	@GeneratedValue(strategy = GenerationType.IDENTITY)
17
	private int id;
18
	private String email;
19
	@Column(name="mobile_number")
20
	private String mobileNumber;
21
	private String code;
22
	private boolean status;
23
	@Column(name="created", updatable = false)
24
	private LocalDateTime created;
25
 
26
	public ActivationCode(String email, String mobileNumber, String code, boolean status, LocalDateTime created) {
27
		super();
28
		this.email = email;
29
		this.mobileNumber = mobileNumber;
30
		this.code = code;
31
		this.status = status;
32
		this.created = created;
33
	}
34
 
35
 
36
	public String getEmail() {
37
		return email;
38
	}
39
 
40
	public void setEmail(String email) {
41
		this.email = email;
42
	}
43
 
44
	public String getMobileNumber() {
45
		return mobileNumber;
46
	}
47
 
48
	public void setMobileNumber(String mobileNumber) {
49
		this.mobileNumber = mobileNumber;
50
	}
51
 
52
	public String getCode() {
53
		return code;
54
	}
55
 
56
	public void setCode(String code) {
57
		this.code = code;
58
	}
59
 
60
	public boolean isStatus() {
61
		return status;
62
	}
63
 
64
	public void setStatus(boolean status) {
65
		this.status = status;
66
	}
67
 
68
	public LocalDateTime getCreated() {
69
		return created;
70
	}
71
 
72
	public void setCreated(LocalDateTime created) {
73
		this.created = created;
74
	} 
75
 
76
}