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