orderMngmntWebapp\src\orderMngr\domain\order\Order.java
| |
5 | |
package orderMngr.domain.order; |
| |
| |
import java.util.*;
import javax.persistence.*;
import ...
|
| |
| |
13 | |
@Entity |
14 | |
public class Order |
15 | |
{ |
16 | |
@Id |
17 | |
private int number; |
| |
19 | |
private String customerId; |
| |
21 | 17 |
@OneToMany
- orderMngr.domain.order.OrderFactoryTest#createOrder: 33
- orderMngr.domain.order.OrderFindersTest#findOrderByCustomer: 70, 85
- orderMngr.domain.order.OrderFindersTest#findOrderByNumber: 31, 58
- orderMngr.domain.order.OrderRepositoryTest#updateOrder: 48
- orderMngr.domain.order.OrderRepositoryTest#createOrder: 28
- orderMngr.domain.order.OrderRepositoryTest#removeOrder: 60
- orderMngr.domain.order.OrderRepository_MockupsAPI_Test#updateOrder: 67
- orderMngr.domain.order.OrderRepository_MockupsAPI_Test#createOrder: 33
|
22 | |
private List<OrderItem> items = new LinkedList<OrderItem>(); |
| |
24 | 0 |
public Order() {}
|
| |
26 | |
public Order(int number, String customerId) |
27 | 17 |
{
- orderMngr.domain.order.OrderFactoryTest#createOrder: 33
- orderMngr.domain.order.OrderFindersTest#findOrderByCustomer: 70, 85
- orderMngr.domain.order.OrderFindersTest#findOrderByNumber: 31, 58
- orderMngr.domain.order.OrderRepositoryTest#updateOrder: 48
- orderMngr.domain.order.OrderRepositoryTest#createOrder: 28
- orderMngr.domain.order.OrderRepositoryTest#removeOrder: 60
- orderMngr.domain.order.OrderRepository_MockupsAPI_Test#updateOrder: 67
- orderMngr.domain.order.OrderRepository_MockupsAPI_Test#createOrder: 33
|
28 | 17 |
this.number = number;
- orderMngr.domain.order.OrderFactoryTest#createOrder: 33
- orderMngr.domain.order.OrderFindersTest#findOrderByCustomer: 70, 85
- orderMngr.domain.order.OrderFindersTest#findOrderByNumber: 31, 58
- orderMngr.domain.order.OrderRepositoryTest#updateOrder: 48
- orderMngr.domain.order.OrderRepositoryTest#createOrder: 28
- orderMngr.domain.order.OrderRepositoryTest#removeOrder: 60
- orderMngr.domain.order.OrderRepository_MockupsAPI_Test#updateOrder: 67
- orderMngr.domain.order.OrderRepository_MockupsAPI_Test#createOrder: 33
|
29 | 17 |
this.customerId = customerId;
- orderMngr.domain.order.OrderFactoryTest#createOrder: 33
- orderMngr.domain.order.OrderFindersTest#findOrderByCustomer: 70, 85
- orderMngr.domain.order.OrderFindersTest#findOrderByNumber: 31, 58
- orderMngr.domain.order.OrderRepositoryTest#updateOrder: 48
- orderMngr.domain.order.OrderRepositoryTest#createOrder: 28
- orderMngr.domain.order.OrderRepositoryTest#removeOrder: 60
- orderMngr.domain.order.OrderRepository_MockupsAPI_Test#updateOrder: 67
- orderMngr.domain.order.OrderRepository_MockupsAPI_Test#createOrder: 33
|
30 | 17 |
}
- orderMngr.domain.order.OrderFactoryTest#createOrder: 33
- orderMngr.domain.order.OrderFindersTest#findOrderByCustomer: 70, 85
- orderMngr.domain.order.OrderFindersTest#findOrderByNumber: 31, 58
- orderMngr.domain.order.OrderRepositoryTest#updateOrder: 48
- orderMngr.domain.order.OrderRepositoryTest#createOrder: 28
- orderMngr.domain.order.OrderRepositoryTest#removeOrder: 60
- orderMngr.domain.order.OrderRepository_MockupsAPI_Test#updateOrder: 67
- orderMngr.domain.order.OrderRepository_MockupsAPI_Test#createOrder: 33
|
| |
32 | 28 |
public int getNumber() { return number; }
- orderMngr.domain.order.OrderFindersTest#findOrderByCustomer: 72, 85, 87
- orderMngr.domain.order.OrderFindersTest#findOrderByNumber: 36, 45, 58x2, 61
- orderMngr.domain.order.OrderRepositoryTest#updateOrder: 50, 52
- orderMngr.domain.order.OrderRepositoryTest#createOrder: 32
|
33 | 11 |
public String getCustomerId() { return customerId; }
- orderMngr.domain.order.OrderFactoryTest#createOrder: 37
- orderMngr.domain.order.OrderFindersTest#findOrderByNumber: 36
- orderMngr.domain.order.OrderRepositoryTest#updateOrder: 50, 52
- orderMngr.domain.order.OrderRepositoryTest#createOrder: 32, 34
- orderMngr.domain.order.OrderRepository_MockupsAPI_Test#updateOrder: 81
- orderMngr.domain.order.OrderRepository_MockupsAPI_Test#createOrder: 61x2
- orderMngr.domain.order.OrderRepository_MockupsAPI_Test#findOrderByCustomer: 182
- orderMngr.domain.order.OrderRepository_MockupsAPI_Test#findOrderByNumber: 169
|
34 | 12 |
public List<OrderItem> getItems() { return items; }
- orderMngr.domain.order.OrderFactoryTest#createOrder: 33, 38
- orderMngr.domain.order.OrderFindersTest#findOrderByNumber: 33, 58, 62, 63
- orderMngr.domain.order.OrderRepositoryTest#createOrder: 30, 32
- orderMngr.domain.order.OrderRepository_MockupsAPI_Test#createOrder: 35, 61
|
| |
36 | |
@Override |
37 | |
public boolean equals(Object o) |
38 | |
{ |
| 5 |
Path coverage: 1/4
A: 0
B: 0
C: 0
D: 5
|
39 | 5 |
if (this == o) return true;
- orderMngr.domain.order.OrderFindersTest#findOrderByCustomer: 85, 87
- orderMngr.domain.order.OrderFindersTest#findOrderByNumber: 61
- orderMngr.domain.order.OrderRepository_MockupsAPI_Test#findOrderByCustomer: 184
- orderMngr.domain.order.OrderRepository_MockupsAPI_Test#findOrderByNumber: 171
|
40 | 5 |
if (o == null || getClass() != o.getClass()) return false;
- orderMngr.domain.order.OrderFindersTest#findOrderByCustomer: 85, 87
- orderMngr.domain.order.OrderFindersTest#findOrderByNumber: 61
- orderMngr.domain.order.OrderRepository_MockupsAPI_Test#findOrderByCustomer: 184
- orderMngr.domain.order.OrderRepository_MockupsAPI_Test#findOrderByNumber: 171
- orderMngr.domain.order.OrderFindersTest#findOrderByCustomer: 85, 87
- orderMngr.domain.order.OrderFindersTest#findOrderByNumber: 61
- orderMngr.domain.order.OrderRepository_MockupsAPI_Test#findOrderByCustomer: 184
- orderMngr.domain.order.OrderRepository_MockupsAPI_Test#findOrderByNumber: 171
|
| |
42 | 5 |
Order order = (Order) o;
- orderMngr.domain.order.OrderFindersTest#findOrderByCustomer: 85, 87
- orderMngr.domain.order.OrderFindersTest#findOrderByNumber: 61
- orderMngr.domain.order.OrderRepository_MockupsAPI_Test#findOrderByCustomer: 184
- orderMngr.domain.order.OrderRepository_MockupsAPI_Test#findOrderByNumber: 171
|
| |
44 | 5 |
return number == order.getNumber();
- orderMngr.domain.order.OrderFindersTest#findOrderByCustomer: 85, 87
- orderMngr.domain.order.OrderFindersTest#findOrderByNumber: 61
- orderMngr.domain.order.OrderRepository_MockupsAPI_Test#findOrderByCustomer: 184
- orderMngr.domain.order.OrderRepository_MockupsAPI_Test#findOrderByNumber: 171
|
45 | |
} |
| |
47 | |
@Override |
48 | |
public int hashCode() |
49 | |
{ |
50 | 0 |
return number;
|
51 | |
} |
52 | |
} |