you don’t need to instantiate it
if you need it in one of your bean, just write
ref()
as it’s already part of the context
👍 1
d
Dennis Schröder
05/09/2021, 6:34 PM
Thx for the answers…is it necessary to tag the repository
ProductDAO
with
@Repository
? And is there a way to do it without the annotation if so?
l
Luca Piccinelli
05/20/2021, 5:19 AM
if don't strictly have the need of staying stick to JPA, I would suggest to have a look at Jetbrains Exposed as a substitute. It takes no more then one day to have a complete overlook. It makes writing repositories really straightforward and you don't have the cognitive overhead of conventions over configuration