I have an Entity, which have list of others entities (childs)
i'm using lazy=true for list mapping. All fine, but when i added new child to list, whole collection loaded by hibernate.
It's perfomance problem now, because the ammount of data is rather large.
If i use inverse=true for list, hibernate doesn't load collection and generate only one SQL INSERT , but there are no Index for this element.
Actually i don't need indexed collection, i want lazy collection, where i can add element (at the end of collection only) with one SQL INSERT.
I wonder can i achive this with Hibernate?
|