使用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;