ItEr20S04ArquitecturaServidorItEr19S04: Fixing problem with StaleObjectStateException in HoursGroup.
This commit is contained in:
parent
a37285c7e8
commit
afc34299de
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ public class OrderLine extends OrderElement {
|
|||
|
||||
public static OrderLine createOrderLineWithUnfixedPercentage(int hours) {
|
||||
OrderLine result = new OrderLine();
|
||||
HoursGroup hoursGroup = new HoursGroup();
|
||||
HoursGroup hoursGroup = HoursGroup.create(result);
|
||||
result.addHoursGroup(hoursGroup);
|
||||
hoursGroup.setFixedPercentage(false);
|
||||
hoursGroup.setPercentage(new BigDecimal(1));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue