Table per class hierarchy实体继承映射方式
只有把discriminator的type为string才是对的,数据库类型是tinyint,设置type=short(或者别的hibernate类型),总是抛出org.hibernate.MappingException: Could not format discriminator value to SQL string
参考书上说type可以设置为hibernate的所有类型,请高手指点
Table per class hierarchy实体继承映射方式
只有把discriminator的type为string才是对的,数据库类型是tinyint,设置type=short(或者别的hibernate类型),总是抛出org.hibernate.MappingException: Could not format discriminator value to SQL string
参考书上说type可以设置为hibernate的所有类型,请高手指点