Why can't arrays be lazy loaded into one-to-many?

According to the Hibernate documentation :

After observing that arrays cannot be lazy , you can conclude that lists, maps, and idbags are the most efficient (not reverse) collection types

So my question is dead simple: why can't arrays be lazily loaded into a one-to-many association?

+5
source share
1 answer

Lazy load - , Hibernate , , , . , hibernate, , Hibernate , , .

, Hibernate , , "[]" (- aaload), Hibernate , , .

, Hibernate 100% , , .

, , . , Hibernate non-collection , , , get/set.

, , PersistentList Hibernate, indexOf ( ) read :

public int indexOf(Object value) {
    read();
    return list.indexOf(value);
}

read , .

+5

All Articles