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/
I am unable to figure out how to get thought this issue.
- How to check if hibernate configuration is proper.
- How to check if session factory is configured properly.
- What else i need to check to see why i am queries are returning null ?
Regards,
Sandeep