Subversion Repositories SmartDukaan

Rev

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

Rev 31860 Rev 32556
Line 1... Line 1...
1
package com.spice.profitmandi.dao.entity.user;
1
package com.spice.profitmandi.dao.entity.user;
2
 
2
 
3
import java.time.LocalDateTime;
-
 
4
 
-
 
5
import javax.persistence.Column;
-
 
6
import javax.persistence.Convert;
-
 
7
import javax.persistence.Entity;
-
 
8
import javax.persistence.GeneratedValue;
3
import in.shop2020.model.v1.user.CartStatus;
9
import javax.persistence.GenerationType;
-
 
10
import javax.persistence.Id;
-
 
11
import javax.persistence.Table;
-
 
12
 
-
 
13
import org.hibernate.annotations.UpdateTimestamp;
4
import org.hibernate.annotations.UpdateTimestamp;
14
 
5
 
15
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
6
import javax.persistence.*;
16
 
-
 
17
import in.shop2020.model.v1.user.CartStatus;
7
import java.time.LocalDateTime;
18
 
8
 
19
/**
9
/**
20
 * This class basically contains cart details
10
 * This class basically contains cart details
21
 * 
11
 * 
22
 * @author ashikali
12
 * @author ashikali
Line 40... Line 30...
40
	
30
	
41
	@Column(name = "cart_status")
31
	@Column(name = "cart_status")
42
	private CartStatus cartStatus;
32
	private CartStatus cartStatus;
43
	
33
	
44
	@Column(name = "address_id")
34
	@Column(name = "address_id")
45
	private int addressId;
35
	private Integer addressId;
46
	
36
	
47
	@Column(name="checked_out_on", updatable = false)
37
	@Column(name="checked_out_on", updatable = false)
48
	private LocalDateTime checkoutTimestamp = LocalDateTime.now();
38
	private LocalDateTime checkoutTimestamp = LocalDateTime.now();
49
	
39
	
50
	@Column(name="created_on", updatable = false)
40
	@Column(name="created_on", updatable = false)
Line 87... Line 77...
87
 
77
 
88
	public void setCartStatus(CartStatus cartStatus) {
78
	public void setCartStatus(CartStatus cartStatus) {
89
		this.cartStatus = cartStatus;
79
		this.cartStatus = cartStatus;
90
	}
80
	}
91
 
81
 
92
	public int getAddressId() {
82
	public Integer getAddressId() {
93
		return addressId;
83
		return addressId;
94
	}
84
	}
95
 
85
 
96
	public void setAddressId(int addressId) {
86
	public void setAddressId(Integer addressId) {
97
		this.addressId = addressId;
87
		this.addressId = addressId;
98
	}
88
	}
99
 
89
 
100
	public LocalDateTime getCheckoutTimestamp() {
90
	public LocalDateTime getCheckoutTimestamp() {
101
		return checkoutTimestamp;
91
		return checkoutTimestamp;