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: How to shape assemblies
PostPosted: Wed Feb 27, 2008 10:51 am 
Beginner
Beginner

Joined: Tue Jan 22, 2008 11:33 am
Posts: 46
Hi, just a question concerning the software architecture. I don't know how to split up smartly the file types in different assemblies .

I have four types of files.
- mapping files (*hbm.xml)
- entity classes, which represent my tables
- Data Access Classes, which work with my entity classes - its a abstraction layer between entity and business classes, so I do not smutch neither one of them
- Business Classes, which use the Data from the Access Classes within the Business Logic defintion

mapping and entity files are generated. If something changes in the data model I do not have to transfer addition coding from my former entity classes, but I just replace the old ones with the new ones. Manual code changes will be only made in the access class.
The application will be shipped to many customers and needs to be maintained efficiently.

Which file types would you combine in one assembly?

Thanks in advance

antoschka


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 28, 2008 2:10 pm 
Regular
Regular

Joined: Wed Jan 25, 2006 1:11 am
Posts: 118
Location: Copenhagen, Denmark
There is no final answer to this, some people prefer few assemblies and others many. Often et follows the way you structure your projects in Visual Studio.

But watch out for circular dependencies if you decide on many assemblies.

For a discussion on the topic watch the comments here:
http://ayende.com/Blog/archive/2008/02/ ... ution.aspx
and here:
http://ayende.com/Blog/archive/2008/02/ ... embly.aspx


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.