Throw proper exception when EntityManager#getCriteriaBuilder() is called

Description

Hibernate OGM doesn't work with Criteria at the moment.
We should override the method in `OgmSessionFactoryImpl` and throw an exception with a better message.

Right now a NullPointerException happens.

Environment

None

Assignee

Davide D'Alto

Reporter

Davide D'Alto

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

Yes, likely

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Priority

Major
Configure