Fixing error with ‘entityManagerFactory’ bean in Java 12 + JavaFX + Hibernate

I am using Open JDK 12, but I think that the problem exists also in Java 11, but I am not sure about that. In my project which was created like in this movie, there was an error during application running after add to project dependency with JPA: