On 3 Aug 01, at 17:21, Ian McCallion wrote:
> Cedric, if I understand correctly, field groups are a means of eager-loading one
> field when another is accessed. So this does not really get to the heart of the
> matter any more than Dominic's suggestion of using BLOB in the database. There'd
> still be n-1 SQL calls instead of 1.
Hi Ian,
I implemented your problem (with the caveat that ejbSelectByDate can use
a data range) and posted the code to
http://www.mvcsoft.com/fault_group_example/intro.htm. It also includes a
quick-and-dirty Swing test client.
I configured the MVCSoft Persistence Manager so that the following SQL
was used:
To find the descriptions:
select t1.primKey, t1.description, t1.imageDate from ImageEJB t1 where
(t1.imageDate > ?) AND (t1.imageDate < ?)
To retrieve a selected image:
select t1.primKey, t1.image from ImageEJB t1 where t1.primKey = ?
This was relatively straightforward using the mapping tool included with the
persistence manager, and works without any proprietary code in your EJB
2.0 JAR. Is it basically what you wanted to accomplish?
-Dan O'Connor
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".