Could not format discriminator value to SQL string Leave a Comment / Java / August 20, 2008 August 20, 2008 [hibernate] Could not format discriminator value to SQL string…异常 如果discriminator value不是String类型就可能出这种错误,解决办法是在 Class.hbm.xml中的class元素处加上属性:discriminator-value="not null"