My first CMP entity bean and I have some questions.
I was wondering if it is possible to do a compound search within the O/R
mapping in orion-ejb-jar.xml?
The problem is a field from one table is needed to lookup a field on another
table to get the result.
Example:
Customer has a field
'items_type' attribute from your code.
Marcel
- Original Message -
From: "Hamidou DIA" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Thursday, May 31, 2001 9:27 PM
Subject: Advanced O-R Mapping
> Hi,
> I am trying to use the
Hi,
I am trying to use the Orion advanced O-R mapping
features. I have an entity bean "Event" which contains
a Collection of "Attachements". At deployment time,
Orion creates a perfect table for Event but the
Event_Attachements table is created with one column of
type LON
24, 2001 8:47 AM
To: Orion-Interest
Subject: RE: O/R mapping
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Sean P.
> McNamara
> Sent: mardi 23 janvier 2001 20:41
> To: Orion-Interest
> Subject: RE: O/R mapping
>
>
>
&g
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Sean P.
> McNamara
> Sent: mardi 23 janvier 2001 20:41
> To: Orion-Interest
> Subject: RE: O/R mapping
>
>
>
> While I agree that the 3-table approach is not necessa
Hi again!
The associative table has its pro and cons. As severel of you pointed out,
the use of a associative table makes the tables a lot cleaner. But as our
complex world seems to be full of multiplicity, I personally would think
twice, when the domain model is large. I did a little test to mea
Title: SV: O/R mapping
That
is, I fully agree that this is important when working with existing
tables.
WR
-Ursprungligt meddelande-Från: Magnus Rydin
Skickat: den 23 januari 2001 23:33Till:
Orion-InterestÄmne: SV: O/R mapping
Daniel, I fully agree with you from
your POV
Title: SV: O/R mapping
Daniel,
I fully agree with you from your POV.
WR
> -Ursprungligt meddelande-
> Från: Daniel Cardin [mailto:[EMAIL PROTECTED]]
> Skickat: den 23 januari 2001 10:50
> Till: Orion-Interest
> Ämne: RE: O/R mapping
>
>
> I'm a CMP fa
: "Magnus Rydin" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Tuesday, January 23, 2001 2:51 PM
Subject: SV: O/R mapping
One of the things I like best with EJB is that I dont have to care about how
my objects are stored (Yes, im a CMP fanatic).
So
l way) , you do
that with only a simple select.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Magnus Rydin
Sent: mardi 23 janvier 2001 14:51
To: Orion-Interest
Subject: SV: O/R mapping
One of the things I like best with EJB is that I dont have to
While I agree that the 3-table approach is not necessary to do 1-M
mappings, and that there are performance reasons that make the 2-table
method attractive, the 3-table method has the benefit that it doesn't
allow the fact that the object in the M (many) position to intrude
upon it's table struc
I'm a CMP fanatic too :) But keep in mind some of us have to deal with
existing models that have been created in the
"traditionnal" RDBMS fashion. It's good to have control on the way CMP
will work with Orion.
We have solved the O-R mapping problem by having a code generato
Behalf Of Jeff Schnitzer
Sent: 23 January 2001 10:48
To: Orion-Interest
Subject: RE: O/R Mapping
The extra table is definately unnecessary, and hopefully it will go away
in a future version of Orion. Take a look at bug #209 in Bugzilla.
Jeff Schnitzer
[EMAIL PROTECTED]
>-Original Mess
Title: SV: O/R mapping
I
care; If you store a 1-m relation in 3 tables, to get the corresponding data
from the third table
for
a PK from the first table, you must join the second table with the third
table;
A join
is slower than a simple select;
If you
store a 1-m relation in only two
Title: SV: O/R mapping
One of the things I like best with EJB is that I dont have to care about how my objects are stored (Yes, im a CMP fanatic).
So my personal contribution to the subject must be:
who cares how many tables are used 'back there' ? :)
> -Ursprungli
À : Orion-Interest
Objet : RE: O/R mapping
Hi Theis,
As much as I can remember, there *is* - definitely - a need for an
intermediate third table to contain the mapping information. By using
this
third table, you eliminate data replication/redundancy in the other two
tables.
To my knowledge this i
[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Tuesday, January 23, 2001 9:14 AM
Subject: O/R Mapping
>
>
> Hi Tony!
>
> Thanks for your quick answer. But I'm still not convinced. Besides many to
> many relation there is, as I see it, no
12:14 AM
>To: Orion-Interest
>Subject: O/R Mapping
>
>
>
>
>Hi Tony!
>
>Thanks for your quick answer. But I'm still not convinced.
>Besides many to
>many relation there is, as I see it, no need for a third table
>(with this
>principle, a many-to-many r
Hi Tony!
Thanks for your quick answer. But I'm still not convinced. Besides many to
many relation there is, as I see it, no need for a third table (with this
principle, a many-to-many relation would result in five tables as you
translate it to two many-to-one, or?). Let me exemplify my concepti
--Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: 22 January 2001 15:10
To: Orion-Interest
Subject: O/R mapping
Hi!
I have been reading the complex-or example and ploughed through the atm
example. In the complex-or example it is stated that c
Hi!
I have been reading the complex-or example and ploughed through the atm
example. In the complex-or example it is stated that collections are mapped
to an another table and that the reason for this is normalization. The Atm
example is also following this principle.
Is this really correct? I h
Hi everybody!
I'm pretty new to applicationservers and right now I'm exploring the o/r mapping
fascilities in orion. I have read the examples
(atm, complex-or on orion support, etc)
and the mail archive, but there is still lot of things that I don't understand. I
would appreci
age-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Goel, Deepak
> Sent: Saturday, September 16, 2000 12:50 AM
> To: Orion-Interest
> Subject: EJB 2.0 O/R Mapping Support in Orion
>
>
> Hello everyone,
>
> I would like to find more about support f
Hello everyone,
I would like to find more about support for EJB 2.0 O/R mapping support in
Orion. Somewhere on this list I read that the ATM example is EJB 2.0 but the
distribution I have doesn't seem to have that. Also, how can I make sure
that the version of Orion I have really support
Hi there,
Can anybody answer me the following tiresome problem?
1. I try to use O-R mapping according to Orion How-to, exactly as the
following:
In CustomerEJB.java, add:
public Set addressSet;
public static final Class
addressSet_type=com.FedEx.entity.customer.Address.class;
public Set
Hi
I guess it should be possible to make CMP Entity bean out of more than one
table.
I guess i have to make my own
orion-ejb-jar.xml.
Is somebody out there who has done that?
rgds
Srikanth
26 matches
Mail list logo