Is it possible to specify that you want a List to return with the object already loaded? I would like to fully populate a list within the buisness tier for a select list used in the presentation tier. I do not want the presentation tier to know about dealing with database connections. The work around for now would be the following in the Business tier.
UserInformationIterator i = userInformationList.iterator();
while(i.hasNext()) {
UserInformationEntity userInformationEntity = i.next();
//Work around to populate the Entity in the Business tier
userInformationEntity.getFirstName();
}
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
calling any method on the list will force resolutions. I typically call size(). There is no need to iterate over each entry and force resolution. The list will be resolved all at once.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is it possible to specify that you want a List to return with the object already loaded? I would like to fully populate a list within the buisness tier for a select list used in the presentation tier. I do not want the presentation tier to know about dealing with database connections. The work around for now would be the following in the Business tier.
UserInformationIterator i = userInformationList.iterator();
while(i.hasNext()) {
UserInformationEntity userInformationEntity = i.next();
//Work around to populate the Entity in the Business tier
userInformationEntity.getFirstName();
}
calling any method on the list will force resolutions. I typically call size(). There is no need to iterate over each entry and force resolution. The list will be resolved all at once.