Subversion Repositories SmartDukaan

Rev

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

Rev 23509 Rev 23638
Line 7... Line 7...
7
import javax.persistence.Column;
7
import javax.persistence.Column;
8
import javax.persistence.Convert;
8
import javax.persistence.Convert;
9
import javax.persistence.Entity;
9
import javax.persistence.Entity;
10
import javax.persistence.EnumType;
10
import javax.persistence.EnumType;
11
import javax.persistence.Enumerated;
11
import javax.persistence.Enumerated;
-
 
12
import javax.persistence.GeneratedValue;
-
 
13
import javax.persistence.GenerationType;
12
import javax.persistence.Id;
14
import javax.persistence.Id;
13
import javax.persistence.Table;
15
import javax.persistence.Table;
-
 
16
import javax.persistence.Transient;
14
 
17
 
15
import com.spice.profitmandi.common.enumuration.PurchaseReturnStatus;
18
import com.spice.profitmandi.common.enumuration.PurchaseReturnStatus;
16
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
19
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
-
 
20
import com.spice.profitmandi.dao.enumuration.fofo.ReturnType;
17
 
21
 
18
/**
22
/**
19
 * This class basically contains api details
23
 * This class basically contains api details
20
 * 
24
 * 
21
 * @author ashikali
25
 * @author ashikali
22
 *
26
 *
23
 */
27
 */
-
 
28
/**
-
 
29
 * @author amit
-
 
30
 *
-
 
31
 */
24
@Entity
32
@Entity
25
@Table(name = "fofo.purchase_return_item", schema = "fofo")
33
@Table(name = "fofo.purchase_return_item", schema = "fofo")
26
 
34
 
27
public class PurchaseReturnItem implements Serializable {
35
public class PurchaseReturnItem implements Serializable {
28
 
36
 
29
	private static final long serialVersionUID = 1L;
37
	private static final long serialVersionUID = 1L;
30
 
38
 
31
	@Id
39
	@Id
-
 
40
	@Column(name="id", columnDefinition = "int(11)")
-
 
41
	@GeneratedValue(strategy = GenerationType.IDENTITY)
-
 
42
	private int id;
-
 
43
	
-
 
44
	public int getId() {
-
 
45
		return id;
-
 
46
	}
-
 
47
	
-
 
48
	private ReturnType returnType;
-
 
49
	
-
 
50
	public ReturnType getReturnType() {
-
 
51
		return returnType;
-
 
52
	}
-
 
53
 
-
 
54
	public void setReturnType(ReturnType returnType) {
-
 
55
		this.returnType = returnType;
-
 
56
	}
-
 
57
 
-
 
58
	@Transient
-
 
59
	private int quantity;
-
 
60
	
-
 
61
	public int getQuantity() {
-
 
62
		return quantity;
-
 
63
	}
-
 
64
 
-
 
65
	public void setQuantity(int quantity) {
-
 
66
		this.quantity = quantity;
-
 
67
	}
-
 
68
 
-
 
69
	public void setId(int id) {
-
 
70
		this.id = id;
-
 
71
	}
-
 
72
 
-
 
73
	@Override
-
 
74
	public String toString() {
-
 
75
		return "PurchaseReturnItem [id=" + id + ", returnType=" + returnType + ", quantity=" + quantity
-
 
76
				+ ", inventoryItemId=" + inventoryItemId + ", fofoId=" + fofoId + ", status=" + status
-
 
77
				+ ", debitNoteId=" + debitNoteId + ", createTimestamp=" + createTimestamp + ", approveTimestamp="
-
 
78
				+ approveTimestamp + ", denyTimestamp=" + denyTimestamp + ", pickupCreateTimestamp="
-
 
79
				+ pickupCreateTimestamp + ", scheduledPickupTimestamp=" + scheduledPickupTimestamp
-
 
80
				+ ", returnTimestamp=" + returnTimestamp + ", refundTimestamp=" + refundTimestamp + "]";
-
 
81
	}
-
 
82
 
32
	@Column(name = "inventory_item_id")
83
	@Column(name = "inventory_item_id")
33
	private int inventoryItemId;
84
	private int inventoryItemId;
34
 
85
 
35
	@Column(name = "fofo_id")
86
	@Column(name = "fofo_id")
36
	private int fofoId;
87
	private int fofoId;