C
C
Chvalov2018-10-16 22:35:54
Spring
Chvalov, 2018-10-16 22:35:54

What is the correct package name for Entity classes?

I want to understand which package name for Entity classes is more religious:
If with:

- config или configuration
- controller
- util 
- service
in all projects it is the same, but in terms of Entity classes, everything is completely sad.
Each has its own package, basically this is: domain, model либо entitywhich package name of these is more used and correct?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Gornostaev, 2018-10-17
@sergey-gornostaev

None of these. The package name should clearly convey the purpose of the domain and the relationship to other packages in the hierarchy.

E
Eugene, 2018-10-17
@zolt85

The correct name is the one by which at a glance you and your team understand what is at stake.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question