-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Map 2Tables to 2 Objects
PostPosted: Thu Oct 20, 2005 1:27 pm 
Newbie

Joined: Wed Oct 19, 2005 11:11 am
Posts: 1
Hi Folks,

i am new to Hibernate an have a problem, which i canĀ“t solve with the documentation.

I have the two tables ORDER and CUSTOMER.

I want to map these tables to the class Order.

Code:

public class Order
{
      Customer c;

     setCustomer(Customer c)

..........
}


How can i map the table CUSTOMER to the variable Customer and the table ORDER to the other variables of the class Order


Top
 Profile  
 
 Post subject: Re: Map 2Tables to 2 Objects
PostPosted: Thu Oct 20, 2005 1:52 pm 
Expert
Expert

Joined: Mon Feb 14, 2005 12:32 pm
Posts: 609
Location: Atlanta, GA - USA
Have you even tried any of the examples ? This is about as simple as it gets.

Why don't you give it a try on your own and if you encounter problems, show your work and someone will help you fix it.

If you want someone to do your work for you, you should hire someone. ;-)

_________________
Preston

Please don't forget to give credit if/when you get helpful information.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.