mysql - No dialect mapping for JDBC type: 0 -



mysql - No dialect mapping for JDBC type: 0 -

if run query in hibernate this:

sessionfactory.getcurrentsession().createsqlquery("select 'test' dual 1=2").list()

i correctly size=(0).

however when run hibernate query this:

sessionfactory.getcurrentsession().createsqlquery("select null dual 1=2").list()

i error saying `"no dialect mapping jdbc type: 0"?

how can prepare instead of error results size=(0)?

* edit * configure dialect hibernate in hibernate.cfg.xml so:

<property name="dialect">org.hibernate.dialect.mysqldialect</property>

try:

<property name="hibernate.dialect">org.hibernate.dialect.mysql5dialect</property>

mysql spring hibernate

Comments

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

How do you set up a perforce server to work over the internet? -

ios - Lagging ScrollView with UIWebview inside -