Hi,
You cannot "relate" an entity bean with all the rows of a table. But you
can think of an entity bean instance as equivalent to one row of a
table. The primary key of the entity bean is equal to the primary key of
the row. So, all the rows of the table is equivalent to an array or
enumeration of all instances of the entity beans.
Hope this makes sense.
Roslan.
Carlos Otero Barros wrote:
>
> Hi All;
>
> I am planning to use Entity Beans representing all the rows in a table.
>
> This is for caching small lists of values (states of a country, airports of
> a country or cities of a state).
> I expect a non-zero rate of change for the values of these lists so I
> decided not to use Stateless Session Beans.
>
> To relate an Entity Bean with all the rows in a table I am planning to use
> create() with no arguments and a business method called getData() returning
> a collection of data objects.
>
> Is this the regular way of relating an Entity Bean with a table? Do you know
> a better way?
>
> Thanks
>
> ===========================================================================
> 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".
===========================================================================
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".