-
1. Re: CMP2.0 and query data mapping?!?
aloubyansky Oct 2, 2002 2:34 PM (in response to davout)Do you mean load-groups and read-ahead? Check Start Guide at sf.net.
-
2. Re: CMP2.0 and query data mapping?!?
davout Oct 3, 2002 4:36 PM (in response to davout)Here's a quote from my original thread/question...
---oOo---
Take a situation where I want to run a query against a customer database. Something like....
select customerID, customerName from customers
It does'nt make any sense to retrieve the entire Customer object. Also what happens if the customer object is a composite of things like...
Customer
|--- Customer Address Info
|--- Customer Order Info
|--- Customer Contacts
A finder would bring back huge amounts of data that simply isn't relevant.
I was sort of expecting EJB to include some of logical entity to data source mapping structure for all aspexcts of the data model - not just entity CRUD.
The few books I've read suggest using a DAO pattern for masking JDBC calls. Again this seems detached from the container based persistence. -
3. Re: CMP2.0 and query data mapping?!?
aloubyansky Oct 4, 2002 2:45 AM (in response to davout)You need to learn load-groups and read-ahead. It allows to setup what fields(columns) will be loaded and what raws will be read ahead.
Have you looked at Start Guide on sf.net, Dain's book? -
4. Re: CMP2.0 and query data mapping?!?
davout Oct 4, 2002 9:25 AM (in response to davout)I'm a newbie to this area...
Where do I find both of these? -