Added support to specify dialect for JPA