We are currently using EntityRepository extends JpaRepository<Entity, Id>
.
It works great but JpaRepository
provides much more apis than we use. Eg:
We should replace it with @RepositoryDefinition(domainClass = Entity.class, idClass = Id.class)
annotation and implement only the required methods.
Our repository should provide only the operations we use.
master
entityName.json
files generated in the .jhipster
directoryIt works great but JpaRepository provides much more apis than we use
I think it was the initial goal. Maybe our generated code don't use all apis, but our users will.
Most helpful comment
I think it was the initial goal. Maybe our generated code don't use all apis, but our users will.