Hello everyone, I am now working on a big Hibernate program and is now stuck in the problem for a long time: When I try to do session.save(object); then transaction.commit(); , an exception is thrown just as the subject describes, Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
It's quite strange because the corresponding tables of my database is toatlly empty and all the primany keys( index) of those tables are generated automatically.
Can anyone give me a clue about the solution? Thanks!!!!!
|