I have a Media entity that has some basic fields for files uploaded by the user. For saving the bytes of the files uploaded, I want to create a custom repository that holds
You wrote:
the suggestions there (all in same package, naming convention) are things I'm already doing.
No you do not.
Rename you MediaBytesRepository
to MediaRepositoryCustom
.
And of course you need an implementation of MediaRepositoryCustom
with the name MediaRepositoryImpl
.
You must name your impl class as "InterfaceNameImpl". Default postfix for implementation is Impl, we can change it as we like:
<repositories base-package="com.acme.repository" repository-impl-postfix="FooBar" />
The name of custom interfaces does not matter.