Does anyone know if it is possible to add an item to a collection without loading stored items in it? Is there a comparison that will allow me to achieve this?
I have a scenario where I do batch processing on some client objects. I want to add some notes to my clients as I go, but I donβt want / need notes already saved for this client, as this is a background process and just adds to the collection.
18.5.3. Amounts and Lists are the Most Effective Reverse Collections
-- (.. Note.Customer Customer.Notes)
Note.Customer
Customer.Notes
, - Note, Customer . , .
I think you should look for HQL updates / inserts, because if you want to work with entities in the collection without loading the collection and not related to the elements of the collection, this is what might be available.