Subversion Repositories SmartDukaan

Rev

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

Rev 23880 Rev 24085
Line 15... Line 15...
15
import javax.persistence.UniqueConstraint;
15
import javax.persistence.UniqueConstraint;
16
 
16
 
17
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
17
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
18
 
18
 
19
@Entity
19
@Entity
20
@Table(name="fofo.prebooking_order", schema = "fofo", uniqueConstraints = {@UniqueConstraint(columnNames = {"item_id", "customer_mobile_number"})})
20
@Table(name="fofo.prebooking_order", schema = "fofo", uniqueConstraints = {@UniqueConstraint(columnNames = {"catalog_id", "customer_mobile_number"})})
21
public class PrebookingOrder implements Serializable{
21
public class PrebookingOrder implements Serializable{
22
 
22
 
23
	private static final long serialVersionUID = 1L;
23
	private static final long serialVersionUID = 1L;
24
 
24
 
25
	@Id
25
	@Id
Line 40... Line 40...
40
	private String customerEmailId;
40
	private String customerEmailId;
41
	
41
	
42
	@Column(name = "item_id")
42
	@Column(name = "item_id")
43
	private int itemId;
43
	private int itemId;
44
	
44
	
-
 
45
	@Column(name = "catalog_id")
-
 
46
	private int catalogId;
-
 
47
	
45
	@Column(name = "quantity")
48
	@Column(name = "quantity")
46
	private int quantity;
49
	private int quantity;
47
	
50
	
-
 
51
	public int getCatalogId() {
-
 
52
		return catalogId;
-
 
53
	}
-
 
54
 
-
 
55
	public void setCatalogId(int catalogId) {
-
 
56
		this.catalogId = catalogId;
-
 
57
	}
-
 
58
 
48
	@Column(name = "available_quantity")
59
	@Column(name = "available_quantity")
49
	private int availableQuantity;
60
	private int availableQuantity;
50
	
61
	
51
	@Convert(converter = LocalDateTimeAttributeConverter.class)
62
	@Convert(converter = LocalDateTimeAttributeConverter.class)
52
	@Column(name = "complete_timestamp")
63
	@Column(name = "complete_timestamp")
Line 209... Line 220...
209
 
220
 
210
	@Override
221
	@Override
211
	public String toString() {
222
	public String toString() {
212
		return "PrebookingOrder [id=" + id + ", fofoId=" + fofoId + ", customerName=" + customerName
223
		return "PrebookingOrder [id=" + id + ", fofoId=" + fofoId + ", customerName=" + customerName
213
				+ ", customerMobileNumber=" + customerMobileNumber + ", customerEmailId=" + customerEmailId
224
				+ ", customerMobileNumber=" + customerMobileNumber + ", customerEmailId=" + customerEmailId
214
				+ ", itemId=" + itemId + ", quantity=" + quantity + ", availableQuantity=" + availableQuantity
225
				+ ", itemId=" + itemId + ", catalogId=" + catalogId + ", quantity=" + quantity + ", availableQuantity="
215
				+ ", completeTimestamp=" + completeTimestamp + ", createTimestamp=" + createTimestamp + "]";
226
				+ availableQuantity + ", completeTimestamp=" + completeTimestamp + ", createTimestamp="
-
 
227
				+ createTimestamp + ", notifyTimeStamp=" + notifyTimeStamp + ", description=" + description
-
 
228
				+ ", advanceAmount=" + advanceAmount + ", tentativeAmount=" + tentativeAmount + "]";
216
	}
229
	}
217
	
230
	
218
}
231
}