使用Hibernate的saveOrUpdateAll()方法时,报错:Batch update returned unexpected row count from update [0]; actual row count;
错误原因:主键人工给定,而hbm文件则使用了native生成策略,改为:assigned;
使用Hibernate的saveOrUpdateAll()方法时,报错:Batch update returned unexpected row count from update [0]; actual row count;
错误原因:主键人工给定,而hbm文件则使用了native生成策略,改为:assigned;