Subversion Repositories SmartDukaan

Rev

Rev 36147 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 36147 Rev 36218
Line 1... Line 1...
1
package com.spice.profitmandi.dao.entity.transaction;
1
package com.spice.profitmandi.dao.entity.transaction;
2
 
2
 
3
import javax.persistence.*;
3
import javax.persistence.*;
-
 
4
import java.time.LocalDate;
4
import java.time.LocalDateTime;
5
import java.time.LocalDateTime;
5
import java.util.Objects;
6
import java.util.Objects;
6
 
7
 
7
@Entity
8
@Entity
8
@Table(name = "transaction.credit_note", schema = "transaction")
9
@Table(name = "transaction.credit_note", schema = "transaction")
Line 29... Line 30...
29
	private LocalDateTime createTimestamp;
30
	private LocalDateTime createTimestamp;
30
 
31
 
31
	@Column(name = "original_invoice_number")
32
	@Column(name = "original_invoice_number")
32
	private String originalInvoiceNumber;
33
	private String originalInvoiceNumber;
33
 
34
 
-
 
35
	@Column(name = "margin_month")
-
 
36
	private LocalDate marginMonth;
-
 
37
 
-
 
38
	@Column(name = "cancelled")
-
 
39
	private boolean cancelled;
-
 
40
 
34
	public int getId() {
41
	public int getId() {
35
		return id;
42
		return id;
36
	}
43
	}
37
 
44
 
38
	public void setId(int id) {
45
	public void setId(int id) {
Line 97... Line 104...
97
 
104
 
98
	public void setOriginalInvoiceNumber(String originalInvoiceNumber) {
105
	public void setOriginalInvoiceNumber(String originalInvoiceNumber) {
99
		this.originalInvoiceNumber = originalInvoiceNumber;
106
		this.originalInvoiceNumber = originalInvoiceNumber;
100
	}
107
	}
101
 
108
 
-
 
109
	public LocalDate getMarginMonth() {
-
 
110
		return marginMonth;
-
 
111
	}
-
 
112
 
-
 
113
	public void setMarginMonth(LocalDate marginMonth) {
-
 
114
		this.marginMonth = marginMonth;
-
 
115
	}
-
 
116
 
-
 
117
	public boolean isCancelled() {
-
 
118
		return cancelled;
-
 
119
	}
-
 
120
 
-
 
121
	public void setCancelled(boolean cancelled) {
-
 
122
		this.cancelled = cancelled;
-
 
123
	}
-
 
124
 
102
	@Override
125
	@Override
103
	public boolean equals(Object o) {
126
	public boolean equals(Object o) {
104
		if (this == o) return true;
127
		if (this == o) return true;
105
		if (o == null || getClass() != o.getClass()) return false;
128
		if (o == null || getClass() != o.getClass()) return false;
106
		CreditNote that = (CreditNote) o;
129
		CreditNote that = (CreditNote) o;