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

Status

Assignee

Davide D'Alto

Reporter

Davide D'Alto

Labels

None

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

Yes, likely

Requires Release Note

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Priority

Major