You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by An...@gmx.de on 2003/08/08 12:12:35 UTC

one table -> multiple classes problem

Hi, 

i have table that looks like : 

table order (
 id,
 orderid, 
 ....
 sender_name,
 sender_street, 
 ....
 recipient_name,
 recipient_street,
 ..
)

each order consists of some order data, the sender address and the recipient
address.
at the moment i have an order class that contains the sender and the
recipient class (the
sender and recipient class is basically a class that contains only the
addresses).

class order
{
  public Long id;
  public Long orderId;
  public SenderAddress sender;
  public RecipientAddress recipient;
}  

is it possible to load the order object and also load the sender and
recipient information
in the proper classes in the order object ? I could not find any information
on how to 
do that in the documentation.

Unfortunately, normalizing the table is not possible.

Any help is really appreciated.

Thanks in advance, 
 
  Andreas  




 

-- 
COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
--------------------------------------------------
1. GMX TopMail - Platz 1 und Testsieger!
2. GMX ProMail - Platz 2 und Preis-Qualitätssieger!
3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8. e-Post


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org