-->
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 OR-Mapping question
PostPosted: Thu Mar 03, 2005 5:57 pm 
Newbie

Joined: Thu Mar 03, 2005 5:53 pm
Posts: 1
My question is about usage of OR mapping tools like Hibernate and JDO. Do these frameworks really allow me to freely design a domain model first (without worrying about tables and columns) and then map my java domain model to my persistent RDBMS schema (the design of which is not constrained in anyway to the OR mapper framework I am using or the domain model that I have designed)?

Say for e.g. I want to have a 'Recipe' object (class) that has a one-to-many relationship with another object called 'Ingredient'. Now the straight forward way to map this using Hibernate is to have two tables 'Tbl_Recipe' and 'Tbl_Ingredient'. But is this the only way or can I have a 'Tbl_Recipe_Master', Tbl_Ingredient_Master' and a third relationship mapper table 'Tbl_Recipe_Ingredients'!!

Does Hibernate or JDO support this kind (or more complex) of relationships?

Thank you.


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.