Subversion Repositories SmartDukaan

Rev

Rev 24123 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 24123 Rev 24159
Line 2... Line 2...
2
 
2
 
3
import java.io.Serializable;
3
import java.io.Serializable;
4
import java.time.LocalDateTime;
4
import java.time.LocalDateTime;
5
 
5
 
6
import javax.persistence.Column;
6
import javax.persistence.Column;
-
 
7
import javax.persistence.Convert;
7
import javax.persistence.Entity;
8
import javax.persistence.Entity;
8
import javax.persistence.GeneratedValue;
9
import javax.persistence.GeneratedValue;
9
import javax.persistence.GenerationType;
10
import javax.persistence.GenerationType;
10
import javax.persistence.Id;
11
import javax.persistence.Id;
11
import javax.persistence.Table;
12
import javax.persistence.Table;
12
 
13
 
-
 
14
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
-
 
15
 
13
@Entity
16
@Entity
14
@Table(name = "user.location", schema = "user")
17
@Table(name = "user.location", schema = "user")
15
public class Location implements Serializable {
18
public class Location implements Serializable {
16
 
19
 
17
	private static final long serialVersionUID = 1L;
20
	private static final long serialVersionUID = 1L;
Line 36... Line 39...
36
	@Column
39
	@Column
37
	private String state;
40
	private String state;
38
 
41
 
39
	@Column
42
	@Column
40
	private String pin;
43
	private String pin;
41
 
44
	
-
 
45
	@Convert(converter = LocalDateTimeAttributeConverter.class)
42
	@Column(name = "create_timestamp")
46
	@Column(name = "create_timestamp")
43
	private LocalDateTime createTimestamp;
47
	private LocalDateTime createTimestamp = LocalDateTime.now();
44
 
48
 
45
	public String getName() {
49
	public String getName() {
46
		return name;
50
		return name;
47
	}
51
	}
48
 
52