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.
|