Fix standalone JpaDatabase use by autowiring EntityManagerFactory