Hibernate 5.1.15 -- Every query is returning null

As part of hibernate upgrade from 3 to 5.1.15.Final, all query executions are returning null.

I checked, session object is non null(See the attached image) as well as criteria object.
However all hibernate queries are returning null.
All the places where there is DB access is happening, value is returned as null.

Criteria criteria = session.createCriteria(EventTypeValue.class)
.add(Restrictions.eq(EventTypeValue_.uniqueName, “space-full”));
EventTypeValue<?> result = (EventTypeValue<?>) criteria.uniqueResult();
logger.error(“EventTypeValue” + result.getEventDisplayName());
logger.error(“EventTypeValue” + result.getSeverity());

Driver–org.mariadb.jdbc.Driver
URL–jdbc:mysql://localhost:3306/
USER–jboss
PASS–******
DIALECT–org.hibernate.dialect.MySQL5Dialect

http://in.relation.to/2017/02/16/mariadb-dialects/

image

I am unable to figure out how to get thought this issue.

  1. How to check if hibernate configuration is proper.
  2. How to check if session factory is configured properly.
  3. What else i need to check to see why i am queries are returning null ?

Regards,
Sandeep

The User Guide offers all the info you need. The configuration properties are documented as well.

Going through User Guide, helped to configure it properly.
Thank you