Search the web
Sign In
New User? Sign Up
domaindrivendesign · Domain-Driven Design
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 7182 - 7211 of 16028   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
7182
Hi, In typical DDD application Services call entities methods to change some business state (for example, productService calls Product.changeName() to change...
johnygold
Offline Send Email
Apr 1, 2008
4:56 pm
7183
If you wish to reuse your domain model across different application boundaries , it is usually not advisable to leave the decision of persistence to your...
Freezing
smfcosta
Offline Send Email
Apr 1, 2008
5:46 pm
7184
... Here's how we do it in Qi4j(.org): All work on Entities is done through a UnitOfWork. When a client begins a process it creates a UnitOfWork, which it then...
Rickard Öberg
rickardoberg
Offline Send Email
Apr 2, 2008
1:12 am
7185
Given just the two options, I would definitely go for no. (1) as I think entities should ideally know nothing about persistence. However, if you use an ORM...
Alasdair Gilmour
alasdair_gil...
Offline Send Email
Apr 2, 2008
9:30 am
7186
Thanks for your replies, i'm still not sure why entities should be unaware of the need to save/commit themself after some change. From the rational point, it...
johnygold
Offline Send Email
Apr 2, 2008
9:33 am
7187
Would this work if we made manual updates to the database either with SQL or through stored procedures? In practice we can not totally avoid them for a variety...
Ertugrul Uysal
ertugrul_uysal
Offline Send Email
Apr 2, 2008
9:45 am
7188
When entities are changed, most of the time a lot of external things should change as well (like the database or the GUI). Therefore I always use events to say...
David Perfors
dnperfors
Offline Send Email
Apr 2, 2008
9:47 am
7189
IMHO, its just down to separation of concerns and the Single Responsibility Principle: A Product entity represents a specific business concept in the domain....
Alasdair Gilmour
alasdair_gil...
Offline Send Email
Apr 2, 2008
11:14 am
7190
Do you mean if the data for your entities is being changed externally by other applications/users at the same time as your application is running? Hibernate...
Alasdair Gilmour
alasdair_gil...
Offline Send Email
Apr 2, 2008
12:37 pm
7191
David, When your DB change - nothing changes in the Domain. It's the IDao implementaion (located in different package/project) which changes. Al, 1. About...
johnygold
Offline Send Email
Apr 2, 2008
2:51 pm
7192
Actually I mean changing them internally within my application by writing hand made SQLs or stored procedures. I can see refreshing entities in the session and...
Ertugrul Uysal
ertugrul_uysal
Offline Send Email
Apr 2, 2008
3:14 pm
7193
What you are talking about is the Active Record pattern. It is a perfectly viable solution, but begins to break down as your domain becomes more complex. You...
Jesse Napier
juice_johnson17
Online Now Send Email
Apr 2, 2008
3:15 pm
7194
1(a) Again, to me, resources such as images and custom files seem more like a detail of the Application itself rather than the business domain. So I'd be...
Alasdair Gilmour
alasdair_gil...
Offline Send Email
Apr 2, 2008
5:45 pm
7195
I think the spirit of ddd is to think wether it makes sense for your object to know about things like persistence? Dog d = new Dog(); d.Bark(); // probably ...
Cristian Libardo
cristian.libardo@...
Send Email
Apr 2, 2008
9:48 pm
7196
No, does Not Make Sense! That is exactly what we have repositories for. Timmo Am 02.04.2008 um 13:10 schrieb Cristian Libardo <cristian.libardo@...>: I...
Timmo Gierke
timmo_gierke
Offline Send Email
Apr 2, 2008
11:40 pm
7197
On Wed, Apr 2, 2008 at 4:10 AM, Cristian Libardo ... I think it's fine to put a save method on the dog, as long as it doesn't actually know the details of how...
Pat Maddox
burritoooboy
Offline Send Email
Apr 3, 2008
12:20 am
7198
I guess there's no right answer here. Personally I prefer not referencing services such as repositories directly from entities simply for technical reasons....
Cristian Libardo
cristian.libardo@...
Send Email
Apr 3, 2008
7:10 pm
7199
I've run into a snag while trying to implement this: an entity in my domain is also a security element. The security domain model appears valid, as does the...
Yevgeny Pechenezhsky
yevgeny.pech...
Offline Send Email
Apr 3, 2008
11:10 pm
7200
I've faced the same problem, when developing an application in Grails, using the acegi plugin. Since it treats Role and User as domain concepts (and generates...
Otavio Macedo
otaviomicrobio
Offline Send Email
Apr 4, 2008
1:20 am
7201
... This is precisely the sort of problems that Qi4j(.org) is dealing with by introducing support for mixins in Java. In my previous job work with the...
Rickard Öberg
rickardoberg
Offline Send Email
Apr 4, 2008
1:53 am
7202
Hi Rickard and Yevgeny, That is a good explanation of Qi4j project. I had heard about it before, but its good to get the reminder. I am also working on a...
James Leigh
jamesleigh2007
Offline Send Email
Apr 4, 2008
3:23 pm
7203
Before going to AOP or to a specific framework (Qi4J) I might recommend doing "mixins" the manual way since you are discussing using them in relatively few...
Greg Young
gumboismadeo...
Offline Send Email
Apr 4, 2008
3:40 pm
7204
I had a somewhat similar issue on a project I worked on, and I can tell you my solution, though I accept that some people might not like it. The business...
Richard Pawson
richard.pawson
Offline Send Email
Apr 4, 2008
4:17 pm
7205
This particular problem can also be solved by applying Role and Player <http://c2.com/cgi/wiki?RoleAndPlayer> within your application and domain model, as...
randy stafford
randalparker...
Offline Send Email
Apr 4, 2008
4:54 pm
7206
Hi David, Sorry for the delayed reply here. Yes I have used Repositories (and I mean classes) directly from within domain object method code; here's a...
randy stafford
randalparker...
Offline Send Email
Apr 5, 2008
9:52 pm
7207
I am working on a project that has a domain model and consistently uses repositories for most of the data access but I have run into a feature where a...
Jesse Napier
juice_johnson17
Online Now Send Email
Apr 6, 2008
12:51 am
7208
IMO all DAO things (interface and impls) belongs to data source layer. I put them in a separate package and assemble it as a separate jar file if you are ...
Ashkan Roshanayi
ashkan.rosha...
Offline Send Email
Apr 6, 2008
11:09 pm
7209
As I mentioned, the data access is not repository related. For example, one of the stored procedures returns a Boolean value as to whether or not an account...
Jesse Napier
juice_johnson17
Online Now Send Email
Apr 7, 2008
5:09 pm
7210
I've read, I think in PoEA, that domain facade services shouldn't call other domain facade services. Given that they're simply for coordinating domain logic,...
nickgieschen
Offline Send Email
Apr 7, 2008
9:31 pm
7211
Hi all, I skimmed through chapter 5 of Eric's book to decide about recommended packaging scheme by DDD. From section about modules I think the following would...
Ashkan Roshanayi
ashkan.rosha...
Offline Send Email
Apr 7, 2008
11:48 pm
Messages 7182 - 7211 of 16028   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help