Adapter prefecth path only for required fields

Posts   
 
    
Gabor
User
Posts: 97
Joined: 29-Jan-2005
# Posted on: 31-Jan-2005 11:56:05   

Hi,

Is it possible to prefetch only the required fields of the related entity with the adapter template?

For examlple:

I want to show all orders with the customer name in the datagrid.

All entity in the collection than will have the order.customerName field.

I think, that fetching the full filled customer object, when i need only some fields is inefficient, but getting only the typedList or typedView is not enough, if i want to modify the entities.

Thanks

Gabor

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 31-Jan-2005 12:57:31   

No that's not possible: either read an entities data, or use an alternative in the form of a list.

Frans Bouma | Lead developer LLBLGen Pro