I am pretty new to hibernate and I am stuck at this exception. As far as my understanding is, this should not happen if my dialect is correct and I am quiet sure I am using the correct dialect i.e org.hibernate.dialect.MySQLDialect, still I tried with org.hibernate.dialect.MySQLInnoDBDialect too but it still gives the same exception. I am using spring 3.1.0 with hibernate 3 and mysql 5. The dao function that is causing this error is:I am pretty new to hibernate and I am stuck at