-->
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: Domain Model And IoC container
PostPosted: Fri May 27, 2005 8:51 am 
Newbie

Joined: Thu Apr 14, 2005 3:28 am
Posts: 7
Location: Moscow, Russia
Hello, All!

I am use Spring IoC and find it very useful for the entire application needs (like resource management, security, transactions and maybe others cross-cutting concernsin the future). Dao object resides in the IoC container. I would like to that my domain objects resides as prototypes in the IoC container too, therefore I can configure it easy (espessially for declarative transactions and security). May I done it using Hibernate? i. e. let the hibernate instantiate it as I wish, not using empty constructor.

Another thing I intend to do is using Dao objects in my domain objects methods.
I know that HIA suggests to avoid such things. But I cant't find another approach to organize my domain objects. The reason is simple:

1. some of the business methods represents coarse grain use cases
2. therefore business methods should modifing objects and create new ones
3. business methods should be polymorphic, therefore I can't move such methods in some kind of the Service layer's objects

Any comments and critique wold be appreciated.

Thanks.


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.