Subversion Repositories SmartDukaan

Rev

Rev 34183 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
28241 amit.gupta 1
package com.spice.profitmandi.dao.entity.fofo;
2
 
34196 ranu 3
import javax.persistence.*;
28241 amit.gupta 4
import java.io.Serializable;
34196 ranu 5
import java.util.Objects;
28241 amit.gupta 6
 
7
/**
8
 * @author amit
9
 *
10
 */
11
@Entity
34183 amit.gupta 12
@Table(name = "transaction.loan_transaction")
28241 amit.gupta 13
public class LoanTransaction implements Serializable {
14
 
15
	@Id
34196 ranu 16
	@Column(name = "id", unique = true, updatable = false)
17
	@GeneratedValue(strategy = GenerationType.IDENTITY)
18
	private Integer id;
19
 
34183 amit.gupta 20
	@Column(name = "loan_id")
21
	private int loanId;
28241 amit.gupta 22
 
34183 amit.gupta 23
	@Column(name = "transaction_id")
24
	private int transactionId;
28241 amit.gupta 25
 
34196 ranu 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
	}
28241 amit.gupta 71
}