Are sleeping applications domain?

If I am developing a hiberante application, am I also developing a DD model?

My application has a service level (which is in the lines with the Observer pattern). Will there also be a domain layer in which all sleep objects exist?

I am looking for my application like this:

alt text

Do I need to know that Domain Driven Design is for writing Hibernate objects?

Can an application be hybrid - OOD at the service level and DDD at the save level?

I'm confused. Please clarify.

+7
java orm hibernate domain-driven-design
source share
2 answers

If I am developing a Hibernate application, am I also developing a DD model?

When using Hibernate, you are likely to create a domain model for the objects and do some domain modeling, but you don’t necessarily follow the principles of domain-based design, there are no direct consequences. And in fact, I am tempted to say that most often the other way around, most Hibernate applications ultimately have an anemic domain model .

Do I need to know that Domain Driven Design is for writing Hibernate objects?

Not. there is no special knowledge to write Entities. However, if you want to follow DDD, you obviously need to have some knowledge of DDD. And if you want to go in that direction, using Hibernate (like your factory for objects) has some implications for implementation. The Spring and Hibernate domain project is a very nice blog post on this topic and describes an AOP-based approach.

Resources

see also

+14
source share

in fact, DDD is an approach and is not tied to the tools you use.

You can use Hibernate or any other OR mappers for DDD or any other aspects that you do, suitable for your case.

Learn more about DDD: http://en.wikipedia.org/wiki/Domain-driven_design

+2
source share

All Articles