I works now with the @PersistenceContext annotation.
@PersistenceContext
private EntityManager entityManager;
Without manually creation the entityManager over the factory creates a mapping exception.
Reply to this message by going to Community
Start a new discussion in Datasource Configuration at Community