Java DDD is developed based on maven.

Source: Internet
Author: User

Java DDD is developed based on maven.

My current understanding of DDD is:

1. In addition to basic data operations, you can also migrate some common methods or classes to Infrastructrue.

2. For the domain layer, you can declare the operation interfaces of each aggregation root: for example, IXXXRepository is implemented at the Infrastructrue layer.

3. the pom. xml package in Infrastructrue depends on the domain layer.

Business problems:

Now I want to put some enumeration definitions in Infrastructrue. enumeration is used at the domain layer, but maven does not allow circular dependencies. How can I solve this problem?

 

Can I define enumeration as a VO object on the domain layer, but I don't want to do this.

What should I do if I put it on the Infrastructrue layer?

 

This article is an open question. I hope you can give me some suggestions.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.