-->
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.  [ 1 post ] 
Author Message
 Post subject: one class used my many other classes
PostPosted: Mon Dec 27, 2004 12:15 pm 
Beginner
Beginner

Joined: Sun Jun 06, 2004 10:13 am
Posts: 20
Hibernate version:
lastest

Mapping documents:
not sure

Code between sessionFactory.openSession() and session.close():
not sure

Full stack trace of any exception that occurs:
not a bug

Name and version of the database you are using:
oracle 9i

The generated SQL (show_sql=true):
NA

Debug level Hibernate log excerpt:
NA

i've looked extensively for an example of how to do the following simple relationship.

we have several objects, say Employee and Contractor, each of which contains a list of Address objects (they can have many addresses)

so in the database, do i need to create a separate table for 'Employee Address' and 'Contractor Address', or can i somehow use one table?

the object model is easy, but i can't figure out how to do the mapping correctly in hibernate.

any help appreciated.


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

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.