I have the following structure:
Invoice
<->> LineItem
How do I write an Expression that will query the database for all the Invoice
objects that do not have any related LineItem
objects?
There is no Invoice.LINE_ITEMS.isEmpty()
and Invoice.LINE_ITEMS.isNull()
will not work because myInvoice.getlineItems()
will return an empty collection not null
.