V agendě Fakturace požadavků byl opraven lazy load vlastníka požadavku.
refs #182
This commit is contained in:
@@ -65,4 +65,12 @@ public class InvoicingServiceImpl extends AbstractOwnedService<Invoicing> implem
|
|||||||
return q.list();
|
return q.list();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Transactional
|
||||||
|
@LazyLoader("form")
|
||||||
|
public void loadOwnedBy(Invoicing invoice) {
|
||||||
|
Invoicing inv = getById(invoice.getId());
|
||||||
|
Hibernate.initialize(inv.getRequirement().getOwnedBy());
|
||||||
|
invoice.getRequirement().setOwnedBy(inv.getRequirement().getOwnedBy());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user