https://github.com/hibernate/hibernate-orm/pull/1286 adds missing dialect-scope
Could you please also cherry-pick fix to 5.0 branch? Thanks