Where should I put the code to create CriteriaQuery
. Should it be in the data access layer or on the services layer.
Asked
Active
Viewed 30 times
0

LonsomeHell
- 573
- 1
- 7
- 29
1 Answers
1
Data access layer. If for example, you want to change implementation from jpa
and thus CriteriaQuery
to something else, you don't want your service classes to be affected.

jonasnas
- 3,540
- 1
- 23
- 32