Hi
I have problem with access to column from entity. I create code like below
private void evaluatePrice(Articles art, Vatrates v) {
Collection<PriceItem> items = priceitemDs.getItems();
for (PriceItem item : items) {
item.setVatrate(v);
PriceItemService pis = AppBeans.get(PriceItemService.NAME);
item = pis.recountPrice(item);
priceitemDs.modifyItem(item);
}
}
Now I’d like to have access to field getPricetype().getVateval()
from PriceItem
entity. When I try get this value I get error
java.lang.IllegalStateException: Cannot get unfetched attribute [vateval] from detached object com.company.erp.entity.PriceType-102 [detached].
How can I expansion values from getPricetype()
?