-->
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.  [ 2 posts ] 
Author Message
 Post subject: Architecture/Development method question
PostPosted: Wed Apr 07, 2004 8:38 am 
Newbie

Joined: Wed Apr 07, 2004 8:09 am
Posts: 1
Location: Brussels, Belgium
Hello.

I'm currently on a project who will probably use hibernate for the O/R mapping. Its quit a first time for everyone, and we stumble among some question about the best approach to use.

Some information about the situation :

- We have a small (50-60 classes) but rich domain model (including heavy use of wrappers and delegation, custom collections, inheritance...), who is well advanced (we're finalizing it). In other words, the model has been created with respect to the business rather than in perspective of its future persistence, and is so heavily object oriented.

- We have created the database schema, who is somewhat smaller and simpler (30-40 tables). Same approach here, we've conceived what we think was the simplest and most efficient relational structure who should be able to represent all the OO model data.

We are know wondering about the best way to map the two. My questions are summurazied here :

- Is this approach (first, the OO model, second, the database schema, third the mapping) OK to use with Hibernate ? We know that the mapping is "conceptually possible", but that in some case it could be tricky (one class to several tables, several classes to one table, generally complex links between tables and classes), and we lack the expertise on the tool to assert if this is even possible.

- If not, as the OO model is the core of the system and should stay as it is, what would be a good approach, starting from there, to conceive the mapping and the related tables ?

Thanks and regards,

Martin Van Aken


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 08, 2004 7:53 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Have a look at middlegen.

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

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.