Subversion Repositories SmartDukaan

Rev

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

Rev 34183 Rev 34196
Line 1... Line 1...
1
package com.spice.profitmandi.dao.entity.fofo;
1
package com.spice.profitmandi.dao.entity.fofo;
2
 
2
 
-
 
3
import javax.persistence.*;
3
import java.io.Serializable;
4
import java.io.Serializable;
4
import java.time.LocalDateTime;
-
 
5
import java.util.List;
5
import java.util.Objects;
6
 
-
 
7
import javax.persistence.Column;
-
 
8
import javax.persistence.Convert;
-
 
9
import javax.persistence.Entity;
-
 
10
import javax.persistence.EnumType;
-
 
11
import javax.persistence.Enumerated;
-
 
12
import javax.persistence.GeneratedValue;
-
 
13
import javax.persistence.GenerationType;
-
 
14
import javax.persistence.Id;
-
 
15
import javax.persistence.Table;
-
 
16
import javax.persistence.Transient;
-
 
17
 
-
 
18
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
-
 
19
import com.spice.profitmandi.dao.enumuration.transaction.OrderStatus;
-
 
20
 
6
 
21
/**
7
/**
22
 * @author amit
8
 * @author amit
23
 *
9
 *
24
 */
10
 */
25
@Entity
11
@Entity
26
@Table(name = "transaction.loan_transaction")
12
@Table(name = "transaction.loan_transaction")
27
public class LoanTransaction implements Serializable {
13
public class LoanTransaction implements Serializable {
28
 
14
 
29
	@Id
15
	@Id
-
 
16
	@Column(name = "id", unique = true, updatable = false)
-
 
17
	@GeneratedValue(strategy = GenerationType.IDENTITY)
-
 
18
	private Integer id;
-
 
19
 
30
	@Column(name = "loan_id")
20
	@Column(name = "loan_id")
31
	private int loanId;
21
	private int loanId;
32
 
22
 
33
	@Id
-
 
34
	@Column(name = "transaction_id")
23
	@Column(name = "transaction_id")
35
	private int transactionId;
24
	private int transactionId;
36
 
25
 
-
 
26
	public Integer getId() {
-
 
27
		return id;
-
 
28
	}
-
 
29
 
-
 
30
	public void setId(Integer id) {
-
 
31
		this.id = id;
-
 
32
	}
-
 
33
 
-
 
34
	public int getLoanId() {
-
 
35
		return loanId;
-
 
36
	}
-
 
37
 
-
 
38
	public void setLoanId(int loanId) {
-
 
39
		this.loanId = loanId;
-
 
40
	}
-
 
41
 
-
 
42
	public int getTransactionId() {
-
 
43
		return transactionId;
-
 
44
	}
-
 
45
 
-
 
46
	public void setTransactionId(int transactionId) {
-
 
47
		this.transactionId = transactionId;
-
 
48
	}
-
 
49
 
-
 
50
	@Override
-
 
51
	public String toString() {
-
 
52
		return "LoanTransaction{" +
-
 
53
				"id=" + id +
-
 
54
				", loanId=" + loanId +
-
 
55
				", transactionId=" + transactionId +
-
 
56
				'}';
-
 
57
	}
-
 
58
 
-
 
59
	@Override
-
 
60
	public boolean equals(Object o) {
-
 
61
		if (this == o) return true;
-
 
62
		if (o == null || getClass() != o.getClass()) return false;
-
 
63
		LoanTransaction that = (LoanTransaction) o;
-
 
64
		return loanId == that.loanId && transactionId == that.transactionId && Objects.equals(id, that.id);
-
 
65
	}
-
 
66
 
-
 
67
	@Override
-
 
68
	public int hashCode() {
-
 
69
		return Objects.hash(id, loanId, transactionId);
-
 
70
	}
37
}
71
}