Subversion Repositories SmartDukaan

Rev

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

Rev 23638 Rev 24094
Line 13... Line 13...
13
import javax.persistence.GenerationType;
13
import javax.persistence.GenerationType;
14
import javax.persistence.Id;
14
import javax.persistence.Id;
15
import javax.persistence.JoinColumn;
15
import javax.persistence.JoinColumn;
16
import javax.persistence.OneToMany;
16
import javax.persistence.OneToMany;
17
import javax.persistence.Table;
17
import javax.persistence.Table;
-
 
18
import javax.persistence.Transient;
18
import javax.persistence.UniqueConstraint;
19
import javax.persistence.UniqueConstraint;
19
 
20
 
20
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
21
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
21
 
22
 
22
@Entity
23
@Entity
Line 73... Line 74...
73
	private String color;
74
	private String color;
74
	
75
	
75
	@Column(name = "discount")
76
	@Column(name = "discount")
76
	private float discount;
77
	private float discount;
77
	
78
	
-
 
79
	@Transient
-
 
80
	private boolean doa;
-
 
81
	
-
 
82
	public boolean isDoa() {
-
 
83
		return doa;
-
 
84
	}
-
 
85
	public void setDoa(boolean doa) {
-
 
86
		this.doa = doa;
-
 
87
	}
78
	@Convert(converter = LocalDateTimeAttributeConverter.class)
88
	@Convert(converter = LocalDateTimeAttributeConverter.class)
79
	@Column(name = "create_timestamp")
89
	@Column(name = "create_timestamp")
80
	private LocalDateTime createTimestamp = LocalDateTime.now();
90
	private LocalDateTime createTimestamp = LocalDateTime.now();
81
	
91
	
82
	@OneToMany(cascade=CascadeType.ALL,fetch=FetchType.EAGER)
92
	@OneToMany(cascade=CascadeType.ALL,fetch=FetchType.EAGER)
Line 223... Line 233...
223
	public String toString() {
233
	public String toString() {
224
		return "FofoOrderItem [id=" + id + ", orderId=" + orderId + ", itemId=" + itemId + ", quantity=" + quantity
234
		return "FofoOrderItem [id=" + id + ", orderId=" + orderId + ", itemId=" + itemId + ", quantity=" + quantity
225
				+ ", sellingPrice=" + sellingPrice + ", cost=" + cost + ", igstRate=" + igstRate + ", cgstRate="
235
				+ ", sellingPrice=" + sellingPrice + ", cost=" + cost + ", igstRate=" + igstRate + ", cgstRate="
226
				+ cgstRate + ", sgstRate=" + sgstRate + ", hsnCode=" + hsnCode + ", dp=" + dp + ", brand=" + brand
236
				+ cgstRate + ", sgstRate=" + sgstRate + ", hsnCode=" + hsnCode + ", dp=" + dp + ", brand=" + brand
227
				+ ", modelName=" + modelName + ", modelNumber=" + modelNumber + ", color=" + color + ", discount="
237
				+ ", modelName=" + modelName + ", modelNumber=" + modelNumber + ", color=" + color + ", discount="
228
				+ discount + ", createTimestamp=" + createTimestamp + ", fofoLineItems=" + fofoLineItems + "]";
238
				+ discount + ", doa=" + doa + ", createTimestamp=" + createTimestamp + ", fofoLineItems="
-
 
239
				+ fofoLineItems + "]";
229
	}
240
	}
230
	
241
	
231
	
242
	
232
	
243
	
233
}
244
}