So the working solution can be to create lightweight object ParentSmall (name,surname,age)
to make it faster when user clicks it in the list to view the brief information(ParentSmall is loaded locally - but what if I have 50 thousand of them in database?)
and real Parent object (ParentSmall+address,childrens) which is full-value object (user clicks 'full info' for instance)
which will be loaded on demand?
And lazy="false" everywhere?
Quote:
Note: if you use master-details relationships then Hibernate uses own implementation of collection interfaces, therefore in case of RMI client should have hibernate.jar in its classpath.
Or Hibernate collections has to be replaced with Java standard ones like this:
parent.setChildren( new ArrayList( parent.getChildren()));
What's the preffered approach? Is it only about the time to download client (with/out hibernate.jar) or is there any other complication?
now I have to have hibernate.jar in client classpath...
Thank you