使用hibernate union-subclass 元素进行继承映射时会抛出此异常:Cannot use identity column key generation with <union-subclass> mapping for(父类).............
原因是:使用unnion-subclass 元素时 父类的标识属性生成器不能使用“indentity” 可以选择"hilo”,"increment”等。
使用hibernate union-subclass 元素进行继承映射时会抛出此异常:Cannot use identity column key generation with <union-subclass> mapping for(父类).............
原因是:使用unnion-subclass 元素时 父类的标识属性生成器不能使用“indentity” 可以选择"hilo”,"increment”等。