Yossi,

To do what you want (have Entities "point" to other Entities, or have
Entities "point" to Collections), you need to use a product which provides
these facilities in their CMP engine.  Typically, "pointers" to other
Entities correspond to foreign keys in the database table, and Collections
of other Entities correspond to "cross reference" tables.

<vendor>
IAS 4.1 provides these features.  A number of AppServers (including IAS)
also provide these features by delegating their CMP support to a third
party O/R product (such as CocoBase).
</vendor>

-jkw

Yossi Shmulevitch wrote:
>
> hi all!
>
> I'm trying to think about a creative solution to design entity beans
> with a compound members
> (such as java.util.collection containing java objects) without using
> serialization.
> The problem with serialization that you can't query a relational DB with
> a native code or change the
> member to another Java object.
> One solution I found out is to create the Collection dynamically  ,
> holding in it another entity beans
> and searching for them in running time . This solution make all this
> entities has a "pointer" to the
> entity that holds them.
> This brings me to another question . How the container represent
> "pointers" to another entities as members
> of an entity in a relational DB?
> thanks,
>              Yossi Shmulevitch
>               [EMAIL PROTECTED]
>
> ===========================================================================
> 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".

Reply via email to