Beginner |
|
Joined: Thu Oct 14, 2004 10:53 pm Posts: 45
|
Hi I'm very new to Hibernate and I have successfully created a few mock apps whereby I persist one Java object to a table in my database. I'm just wondering whether the following are possible....
- Can you map one Java object to more than one table in the database? If so, what steps need to be done?
- Can you map more than one Java object to a single table in the database? If so, what steps need to be done?
Hope someone can answer my questions. Thank you!
[b]Hibernate version: 2.1 [/b]
[b]Mapping documents: N/A[/b]
[b]Code between sessionFactory.openSession() and session.close():N/A[/b]
[b]Full stack trace of any exception that occurs:N/A[/b]
[b]Name and version of the database you are using: SQL Server 2000 and Oracle 10g[/b]
[b]The generated SQL (show_sql=true): N/A[/b]
[b]Debug level Hibernate log excerpt: N/A[/b]
|
|