Hi All,
I'm facing a NullPointerException in Hibernate 5.0.7 since I added the following line in a custom Dialect class overriding from SQLServerDialect.
Code:
registerHibernateType(Types.NCHAR, "char(1)");
Is there any alternative way to do this?
used query is
Code:
SELECT MULTI_GAME FROM ASSET.ASSET_CONFIGURATION_OPTION
Code:
null: java.lang.NullPointerException at org.hibernate.loader.custom.ScalarResultColumnProcessor.extract(ScalarResultColumnProcessor.java:54) at org.hibernate.loader.custom.ResultRowProcessor.buildResultRow(ResultRowProcessor.java:83) at org.hibernate.loader.custom.ResultRowProcessor.buildResultRow(ResultRowProcessor.java:60) at org.hibernate.loader.custom.CustomLoader.getResultColumnOrRow(CustomLoader.java:414) at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:756) at org.hibernate.loader.Loader.processResultSet(Loader.java:972) at org.hibernate.loader.Loader.doQuery(Loader.java:930) at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:336) at org.hibernate.loader.Loader.doList(Loader.java:2611) at org.hibernate.loader.Loader.doList(Loader.java:2594) at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2423) at org.hibernate.loader.Loader.list(Loader.java:2418) at org.hibernate.loader.custom.CustomLoader.list(CustomLoader.java:336) at org.hibernate.internal.SessionImpl.listCustomQuery(SessionImpl.java:1967) at org.hibernate.internal.AbstractSessionImpl.list(AbstractSessionImpl.java:322) at org.hibernate.internal.SQLQueryImpl.list(SQLQueryImpl.java:125)
Kindly help on the above issue and let us know in case of any alternative way is there. Thanks in advance.