I beleive it is possible. First, in the cas of a one-to-many design, you 
will get two tables. One for persons and the other for addresses. I'll have 
that example ready very soon, probably tonight.

Also, I *believe* orion allows you to control the table names and such. Of 
course, thats a server specific feature.

I'll post the 1<-->n example soon.

Jim


--On Thursday, January 25, 2001 11:23 AM -0500 Neal Kaiser 
<[EMAIL PROTECTED]> wrote:

> Just ran your tutorial, had no problems at all setting it up with Orion
> 1.4.5. Thank you, it was very informative.
>
> Is it possible to do something like this if it spans multiple tables? What
> if you had a 1-many relationship  and a user could have many addresses.
> In the database there would be a USERS table and an ADRESSES table.  Is
> that possible with CMP?  Any tutorials on that?
>
>> -----Original Message-----
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED]]On Behalf Of Jim Archer
>> Sent: Wednesday, January 24, 2001 9:50 PM
>> To: Orion-Interest
>> Subject: EJB 2.0 Dependent object example now available
>>
>>
>>
>>
>> Hello all...
>>
>> Many people have written me requesting I provide an EJB 2.0
>> CMP example
>> that uses a dependent object. To all who asked, I apologize
>> for the delay.
>> I have sent it to Joe for posting on OrionSupport, and it is
>> right now
>> available at:
>>
>> http://www.archer.net/Test20CmpDo.zip
>>
>> This example has an entity bean to represent a person and a dependent
>> object to represent the person's postal address. There is a
>> one-to-one
>> relationship between the entity bean and its dependent.
>>
>> There will be a similar example with a one-to-many relationship soon.
>>
>> Cheers!
>>
>> Jim
>>
>>
>>
>>
>





Reply via email to