users
[Top] [All Lists]

Re: [cinjug-users] Hibernate Question - Component Object Definition/Mapp

To: users@xxxxxxxxxx
Subject: Re: [cinjug-users] Hibernate Question - Component Object Definition/Mapping
From: Brian K Bonner <brian.bonner@xxxxxxxxxxxx>
Date: Thu, 14 Oct 2004 13:21:41 -0400
Delivered-to: mailing list users@cinjug.org
In-reply-to: <20041013182934.84220.qmail@web41627.mail.yahoo.com>
Mailing-list: contact users-help@cinjug.org; run by ezmlm
John, 

Use middlegen to reverse-engineer your legacy db to appropriate mappings 
and objects.  Search on middlegen out at the hibernate forum.

Brian

John Olmstead <jolmstead2k@xxxxxxxxx> wrote on 10/13/2004 02:29:34 PM:

> Collegues;
> 
> I have two objects, call them A and B.  Object B has a 4 property 
> composite key whose
> individual members are also contained in Object A.  Object A 
> however, has a different primary
> key definition than Object B.  Since the primay key fields in Object
> B are contained in Object
> A, I would like to include Object B as an property of Object A but 
> cannot find a clear way to
> do this.
> 
> The Hibernate Literature:
> http://www.hibernate.org/hib_docs/reference/en/html/components.
> html#components-dependentobjects
> 
> discusses dependent objects but states that the parent table would 
> contain the properties of
> both the Object A and its property Object B.  The properties of each
> of these Objects are in
> separate tables of a legacy system.
> 
> I also sifted through the HQL examples in the literature and did not
> find any thing relevent.
> 
> Any suggestions on a solution to achieve my objective of including 
> Object B as a property of
> Object A would be greatly appreciated.
> 
> Thank You;
> 
> 
> John Olmstead
> 
> =====
> John Olmstead
> jolmstead2k@xxxxxxxxx
> 
> 
> 
> _______________________________
> Do you Yahoo!?
> Declare Yourself - Register online to vote today!
> http://vote.yahoo.com
> 
> ---------
> You may unsubscribe from this mailing list
> by sending a blank email addressed to:
> users-unsubscribe@xxxxxxxxxx
> 
> --
> Find additional help by sending a blank email
> addressed to:
> users-help@xxxxxxxxxx
> 


<Prev in Thread] Current Thread [Next in Thread>