| Line 31... |
Line 31... |
| 31 |
@NamedQuery(
|
31 |
@NamedQuery(
|
| 32 |
name = "Transaction.selectByIds",
|
32 |
name = "Transaction.selectByIds",
|
| 33 |
query = "select t.id, t.createTimestamp, o.retailerAddress1, o.retailerAddress2, o.retailerCity, "
|
33 |
query = "select t.id, t.createTimestamp, o.retailerAddress1, o.retailerAddress2, o.retailerCity, "
|
| 34 |
+ "o.retailerPinCode, o.retailerState, o.shippingCost, o.statusDescription, o.invoiceNumber, o.airwayBillNumber, o.totalAmount, li.brand, li.modelName, "
|
34 |
+ "o.retailerPinCode, o.retailerState, o.shippingCost, o.statusDescription, o.invoiceNumber, o.airwayBillNumber, o.totalAmount, li.brand, li.modelName, "
|
| 35 |
+ "li.modelNumber, li.color, li.quantity, li.unitPrice, p.id, p.name, o.shippingTimestamp, o.status, o.promisedDeliveryTime, o.retailerName from Transaction t join Order o on o.transactionId = t.id "
|
35 |
+ "li.modelNumber, li.color, li.quantity, li.unitPrice, p.id, p.name, o.shippingTimestamp, o.status, o.promisedDeliveryTime, o.retailerName from Transaction t join Order o on o.transactionId = t.id "
|
| 36 |
+ "join LineItem li on li.orderId = o.id left join Provider p on p.id = o.logisticsProviderId where t.id in :ids order by id desc")
|
36 |
+ "join LineItem li on li.orderId = o.id left join Provider p on p.id = o.logisticsProviderId where t.id in :ids order by t.id desc")
|
| 37 |
})
|
37 |
})
|
| 38 |
|
38 |
|
| 39 |
public class Transaction implements Serializable{
|
39 |
public class Transaction implements Serializable{
|
| 40 |
|
40 |
|
| 41 |
private static final long serialVersionUID = 1L;
|
41 |
private static final long serialVersionUID = 1L;
|