code: public void exposeAllEntities(EntityManagerFactory emf) {
          Set<ManagedType<?>> managedTypes = emf.getMetamodel().getManagedTypes();
          for (ManagedType<?> managedType : managedTypes) {
              Class<?> managedJavaType = managedType.getJavaType();
              if (managedJavaType.getAnnotation(Entity.class) != null) {
                  addRepository(JpaRepositoryConfig.builder(managedJavaType).build());
              }
          }
      }
docs: Exposes all entities as repositories.