-->
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: General Hibernate question:mapping multiple objects & ta
PostPosted: Thu Oct 14, 2004 11:01 pm 
Beginner
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]


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.