測試代碼建立雙向關聯並 session.save(order)。
[Microsoft][SQL Server 2000 Driver for JDBC]Can't start a cloned connection while in manual transaction mode.
SelectMethod=direct,同一連接無法並發多個 ResultSet/Statement。SelectMethod=cursor
jdbc:microsoft:sqlserver://localhost:1433;SelectMethod=cursor;DatabaseName=yourdb
cursor 模式支援手動事務下多 Statement 操作。同步修改 hibernate.cfg.xml 與 .hibernateSynchronizer (若用同步工具)。
修改後重啟應用,級聯保存正常,不再報錯。