[ajug-members] JTables with large amounts of data

Parna Hiram parna.hiram at gmail.com
Mon Nov 8 13:07:46 EST 2004


Angus,
Yes, but I think in hibernate lazy loading can only occur on the
collections level (essentially one-to-many associations).

So, if I have retrieve all Patients, and the Patient class has a
one-to-many relationship with the Address class, lazy loading would
mean that the address collection is not populated until a get() is
actually called on a specific element of that collection.

This will not help me here, because I get what I want is the lazy
intialization of a table.  If I were to set up a Persons collection
and set it as a lazy collection in another class, it would still be
fully initialized (I think) because the table's getValueAt(row, col)
would fire for every element in the table when loaded.

Am I incorrect here or missing something obvious.

Regards, Parna

On Mon, 08 Nov 2004 12:41:39 -0500, Angus Berry <angus.berry at elken.com> wrote:
> You might want to look into 'lazy loading' in Hibernate, as an option.
> There's an enormous amount of background work done for you in most ORM
> products like Hibernate.
>



More information about the ajug-members mailing list