Title: Mapping an object accross mutiple tables ??

Hi everyone,
        With Hibernate, we can map to classes to the same table, (eg. A person object that has a reference to an address object, and the information of both are saved to same table T_PERSON). But can I save a single object across mutiple table. For example, if the person object is composed of is personnal info (name, first name, age etc) and the information on is location (address), and I want to save is personnal info on a T_PERSON table and is location info on a T_ADDRESS table. How do I write the mapping file?? What are the tags that I need?

The point is that I have an existing database model and an object model, both created by two different team, and i have to do the mapping between them. This lead to many weird situations.

Thanks for your help.

Philip St-Pierre
Loto-Québec - Projet IRIS (Centre de livraison)
Analyste-Programmeur
+ [EMAIL PROTECTED]


Reply via email to