Subversion Repositories SmartDukaan

Rev

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

Rev 31773 Rev 31792
Line 1... Line 1...
1
package com.spice.profitmandi.dao.entity.user;
1
package com.spice.profitmandi.dao.entity.user;
2
 
2
 
3
import javax.persistence.Column;
-
 
4
import javax.persistence.Entity;
-
 
5
import javax.persistence.Id;
3
import javax.persistence.*;
6
import javax.persistence.Table;
-
 
7
import java.io.Serializable;
4
import java.io.Serializable;
8
import java.time.LocalDateTime;
5
import java.time.LocalDateTime;
9
import java.util.Objects;
6
import java.util.Objects;
10
 
7
 
11
/**
8
/**
Line 16... Line 13...
16
 */
13
 */
17
@Entity
14
@Entity
18
@Table(name="user.line", schema = "user")
15
@Table(name="user.line", schema = "user")
19
 
16
 
20
public class CartLine implements Serializable {
17
public class CartLine implements Serializable {
-
 
18
 
-
 
19
	@Transient
-
 
20
	private int lineItemId;
-
 
21
	@Transient
-
 
22
	private int lineItemQty;
-
 
23
 
-
 
24
 
21
	@Id
25
	@Id
22
	@Column(name="cart_id")
26
	@Column(name="cart_id")
23
	private int cartId;
27
	private int cartId;
24
	@Id
28
	@Id
25
	@Column(name="item_id")
29
	@Column(name="item_id")
Line 39... Line 43...
39
	@Override
43
	@Override
40
	public int hashCode() {
44
	public int hashCode() {
41
		return Objects.hash(cartId, itemId, quantity, availability, lineStatus, estimate, createTimestamp, updateTimestapm, actualPrice, discountedPrice, insurer, insuranceAmount, dataProtectionInsurer, dataProtectionAmount, dealText);
45
		return Objects.hash(cartId, itemId, quantity, availability, lineStatus, estimate, createTimestamp, updateTimestapm, actualPrice, discountedPrice, insurer, insuranceAmount, dataProtectionInsurer, dataProtectionAmount, dealText);
42
	}
46
	}
43
 
47
 
-
 
48
	public int getLineItemId() {
-
 
49
		return lineItemId;
-
 
50
	}
-
 
51
 
-
 
52
	public void setLineItemId(int lineItemId) {
-
 
53
		this.lineItemId = lineItemId;
-
 
54
	}
-
 
55
 
-
 
56
	public int getLineItemQty() {
-
 
57
		return lineItemQty;
-
 
58
	}
-
 
59
 
-
 
60
	public void setLineItemQty(int lineItemQty) {
-
 
61
		this.lineItemQty = lineItemQty;
-
 
62
	}
-
 
63
 
44
	@Override
64
	@Override
45
	public String toString() {
65
	public String toString() {
46
		return "CartLine{" +
66
		return "CartLine{" +
47
				"cartId=" + cartId +
67
				"cartId=" + cartId +
48
				", itemId=" + itemId +
68
				", itemId=" + itemId +